Sorry, I forgot to mention that I succeeded following tuka's advice, booting from CD, etc..., BTW, single-user mode was not accessible (when booting from HD) - it refused to eneter signle user mode (also: Invalid shell message) and end-up switching into run-level 3...
10x again tuka!
I know that /sbin/bash is invalid shell, it supposed to be /usr/bin/bash but I misstyped it, now I cant change passwd file becouse only root has right to write to it
Does anyone know how to reboot machine into single-user mode ???
Hello,
Problem is following (SOlaris 2.8 on SunSparc Workstation)
- I logged in as a simple users
- su root
- change /etc/passwd, change root's shell from /sbin/sh to /sbin/bash
- I can't login now as a root (or su root) becouse /sbin/bash is invalid file path (message "no shell")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.