Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 1997 23:29:59 -0500 (EST)
From:      "Joe \"Marcus\" Clarke" <jmcla@ocala.cs.miami.edu>
To:        Javier Henderson <javier@kjsl.com>
Cc:        "Matthew D. Fuller" <fullermd@futuresouth.com>, freebsd-questions@freebsd.org
Subject:   Re: Shooting yourself in the foot
Message-ID:  <Pine.SGI.3.96.971222232830.16691C-100000@ocala.cs.miami.edu>
In-Reply-To: <199712230350.TAA00998@kjsl.com>

next in thread | previous in thread | raw e-mail | index | archive | help
You might have to...I never had kerberos enabled.  My problem was I
didn't add the shell to /etc/shells, and su -m wouldn't work for me.
The single user mode was the solution I found.  I might be making more
trouble than it's worth, but I figure I'll offer any help I can.

Joe Clarke

On Mon, 22 Dec 1997, Javier Henderson wrote:

> 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?Pine.SGI.3.96.971222232830.16691C-100000>