Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Mar 2000 21:24:28 -0800 (PST)
From:      Bhishan Hemrajani <bhishan@cytosine.dhs.org>
To:        Alan Chan <alanux@excite.com>
Cc:        Alfred Perlstein <bright@wintelcom.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: login problems due to ttys
Message-ID:  <200003260524.VAA23716@cytosine.dhs.org>
In-Reply-To: <14128432.954027051158.JavaMail.imail@ants.excite.com> from Alan Chan at "Mar 25, 2000 03:30:50 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
To find out where vi is located, boot up into multi-user mode,
and type "which vi"

Also, when you boot into single user mode, I just "su root" so that
all the paths are set. Therefore, you can just type vi and it will
work after that.

--bhishan

> Alfred,
> 
> Thanks for your swift response.  I can now login as root using "boot -s"
> command that you instructed.  A small question: I'm in the single user mode
> and need to execute the vi command.  Can't seem to find the directory where
> the vi command's located.  I gave up looking for it.  Can you please let me
> know how I can execute the vi command in a single user mode so I can modify
> the /etc/ttys file?  Your help is sincerely appreciated.
> 
> 
> Alan
> 
> 
> 
> On Sat, 25 Mar 2000 13:37:04 -0800, Alfred Perlstein wrote:
> 
> >  * Alan Chan <alanux@excite.com> [000325 13:24] wrote:
> >  > Hi,
> >  > 
> >  > I mistakenly changed my /etc/ttys files as being "insecure".  Every
> lines in
> >  > the file have been changed to "insecure" (i.e. console, ttyv0, ttyv1,
> etc.).
> >  > Now I can't log in because of this mistake.  What can i do to fix it
> that
> >  > enable me to log in?  Any comments and suggestions are appreciated.
> >  
> >  As long as you have the root password, you ought to be able to log in
> >  via single user mode.
> >  
> >  Hit spacebar during the loader countdown, then type "boot -s" and hit
> >  enter.
> >  
> >  best of luck,
> >  -Alfred
> 
> 
> 
> 
> 
> _______________________________________________________
> Get 100% FREE Internet Access powered by Excite
> Visit http://freelane.excite.com/freeisp
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003260524.VAA23716>