Date: Mon, 22 Dec 1997 19:50:21 -0800 (PST) From: Javier Henderson <javier@kjsl.com> To: "Matthew D. Fuller" <fullermd@futuresouth.com> Cc: "Joe \"Marcus\" Clarke" <jmcla@ocala.cs.miami.edu>, Javier Henderson <javier@kjsl.com>, freebsd-questions@freebsd.org Subject: Re: Shooting yourself in the foot Message-ID: <199712230350.TAA00998@kjsl.com> In-Reply-To: <Pine.BSF.3.96.971222214741.11353C-100000@shell.futuresouth.com> References: <Pine.SGI.3.96.971222170622.14913A-100000@ocala.cs.miami.edu> <Pine.BSF.3.96.971222214741.11353C-100000@shell.futuresouth.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Matthew D. Fuller writes: > On Mon, 22 Dec 1997, Joe "Marcus" Clarke wrote: > > > The way I fixed this when I did something similar was to take the system > > down to single user mode, `shutdown now`, then remount / as read/write, > > mount -u /, then edit /etc/shells to allow for /bin/false as a valid > > shell. Bring the system back up to multi-user and login as a user > > allowed to su to root. Then su to root using su -m, you should be able > > to issue a chsh root then. If you have no ther users in wheel, then > > instaed of editing /etc/shells, use vipw to edit the password file and > > change roots shell back to something else. > No need to shutdown. > Just do a su -m, then use vipw to set root's shell back to sh (or csh if > you're REALLY perverse ;). Well... bash-2.01$ su -m su: kerberos: not in root's ACL. Password: su: permission denied (shell). I guess I'll have to shutdown, eh? -jav
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712230350.TAA00998>