[buug] Lost root access

johnd john at jjdev.com
Fri Nov 15 17:40:04 PST 2002


On Fri, Nov 15, 2002 at 05:27:14PM -0800, Skip Evans wrote:
> Hi all,
> 
> I've really hosed myself this time.
> 
> Someone else installed bash on my machine, but it got installed
> in /usr/local/bin.
> 
> I assumed it had been put in /bin
> and did a chsh on root because I need to compile a port that requires
> root to be using the bash shell.
> 
> So when I did the chsh on root I gave it /bin/bash for the new shell.
> 
> Of course, you can guess what happens now. When I try and su
> to root, after entering the password, it says it can't find /bin/bash
> and then drops out.
> 
> I have no root access know. Anyone know how I can fix this???

you could boot off your CD, mount the partition, edit the /etc/passwd file,
then reboot.





More information about the buug mailing list