Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 1997 22:54:16 -0600
From:      Ben Hockenhull <benh@jpj.net>
To:        Javier Henderson <javier@kjsl.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Shooting yourself in the foot
Message-ID:  <v03102803b0c4f421fbf1@[192.168.10.1]>
In-Reply-To: <199712230350.TAA00998@kjsl.com>
References:   <Pine.BSF.3.96.971222214741.11353C-100000@shell.futuresouth.com> <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).

Well, IIRC, you need to specify the path to a shell with an su -m.

like so:

bash-2.01$ su -m /bin/sh

Regards,

Ben


--
Ben Hockenhull
benh@jpj.net
"Revenge is a dish best served with pinto beans and muffins."





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v03102803b0c4f421fbf1>