From owner-freebsd-questions Tue Nov 17 12:05:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA04784 for freebsd-questions-outgoing; Tue, 17 Nov 1998 12:05:36 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from n4hhe.ampr.org (tnt3-73.HiWAAY.net [208.147.146.73]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA04738 for ; Tue, 17 Nov 1998 12:05:23 -0800 (PST) (envelope-from dkelly@n4hhe.ampr.org) Received: from n4hhe.ampr.org (localhost.ampr.org [127.0.0.1]) by n4hhe.ampr.org (8.9.1/8.9.1) with ESMTP id NAA08621; Tue, 17 Nov 1998 13:47:02 -0600 (CST) (envelope-from dkelly@n4hhe.ampr.org) Message-Id: <199811171947.NAA08621@n4hhe.ampr.org> X-Mailer: exmh version 2.0.2 2/24/98 To: "'Alex Knowles'" , "Questions (E-mail)" From: David Kelly Subject: Re: I can't believe I am soo stupid In-reply-to: Message from Christopher Michaels - SSG of "Tue, 17 Nov 1998 13:50:33 EST." <6C37EE640B78D2118D2F00A0C90FCB441A5CCB@site2s1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 17 Nov 1998 13:47:02 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Christopher Michaels - SSG writes: > Boot up the machine single user ( -s at the boot up prompt ) > It will ask for the shell to use [/bin/sh] once in there, edit the passwd > file and fix the path for the root shell. I forget, you might be able to simply "su" to root even if root doesn't have a valid shell? Could save a reboot. Otherwise once in single user, "mount /usr", then use chsh(1) to set the shell and do it right, and foolproof. Something like this: "chsh -s tcsh root". Chsh limits the shell choices to those listed in /etc/shells. And "tcsh" is good enough to find /usr/local/bin/tcsh. chsh allows a user to change their default shell without bothering the sysadmin. Once you have a root shell you might consider putting a password on the toor account. Its always nice to have an alternate way to login with a spare shell. -- David Kelly N4HHE, dkelly@nospam.hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message