Date: Tue, 17 Nov 1998 13:47:02 -0600 From: David Kelly <dkelly@hiwaay.net> To: "'Alex Knowles'" <alex@targeting.co.uk>, "Questions (E-mail)" <questions@FreeBSD.ORG> Subject: Re: I can't believe I am soo stupid Message-ID: <199811171947.NAA08621@n4hhe.ampr.org> In-Reply-To: Message from Christopher Michaels - SSG <ChrisMic@sbservices.com> of "Tue, 17 Nov 1998 13:50:33 EST." <6C37EE640B78D2118D2F00A0C90FCB441A5CCB@site2s1>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811171947.NAA08621>