From owner-freebsd-questions Sat Mar 25 15:42: 6 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id AEBDA37B8B8 for ; Sat, 25 Mar 2000 15:42:02 -0800 (PST) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e2Q05wZ06049; Sat, 25 Mar 2000 16:05:58 -0800 (PST) Date: Sat, 25 Mar 2000 16:05:58 -0800 From: Alfred Perlstein To: Alan Chan Cc: freebsd-questions@FreeBSD.ORG Subject: Re: login problems due to ttys Message-ID: <20000325160558.L21029@fw.wintelcom.net> References: <14128432.954027051158.JavaMail.imail@ants.excite.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <14128432.954027051158.JavaMail.imail@ants.excite.com>; from alanux@excite.com on Sat, Mar 25, 2000 at 03:30:50PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Alan Chan [000325 16:02] wrote: > 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. if you issue the command "mount -a" then your /usr should become available (vi is /usr/bin/vi) as well as '/' becoming read/write. -Alfred > > > Alan > > > > On Sat, 25 Mar 2000 13:37:04 -0800, Alfred Perlstein wrote: > > > * Alan Chan [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 -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message