Date: Sun, 26 Mar 2000 11:29:41 +0100 From: Mark Ovens <mark@ukug.uk.freebsd.org> To: Bhishan Hemrajani <bhishan@cytosine.dhs.org> Cc: Alan Chan <alanux@excite.com>, Alfred Perlstein <bright@wintelcom.net>, freebsd-questions@freebsd.org Subject: Re: login problems due to ttys Message-ID: <20000326112941.B234@parish> In-Reply-To: <200003260524.VAA23716@cytosine.dhs.org>; from bhishan@cytosine.dhs.org on Sat, Mar 25, 2000 at 09:24:28PM -0800 References: <14128432.954027051158.JavaMail.imail@ants.excite.com> <200003260524.VAA23716@cytosine.dhs.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 25, 2000 at 09:24:28PM -0800, Bhishan Hemrajani wrote: > 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. % which vi /usr/bin/vi % So in SUM you'll have to mount /usr to make vi accessible. ed(1) is available by default in SUM as it's in /bin and statically linked. > > --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 -- Seminars, n.: From "semi" and "arse", hence, any half-assed discussion. ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com 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?20000326112941.B234>