Discussion Locked

locked out of root on Solaris 8

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I changed root's shell from sh to bash(not knowing I should never do this), and now I am unable to log in as root. I can't su to root either. Anything I can do? Thanks.

7 replies

by jrunix

Try booting from cdrom and mounting the / (root partition /dev/dsk/c0#####) on /a that is available for this type of mounting, and edit the passwd file from there and reboot with a reconfigure. This may work!!

by pvp

*If* you get this fixed, next time just log in as root and start bash from the command line. You'll just have to log out twice--bash, then sh.

by jacob.wilkins

You could try using su to execute a command, such as:

su -c sh
or
su -c chsh

If that doesn't work I suggest you check www.rootshell.com, download and compile a 'sploit, and hax0r yourself.

jrw

This discussion is closed to new replies.