Re: root "no shell" boo-boo
Thanks to all who made a suggestion:Quote:>A friend has a brand new Sparc Station 5. After a few hours of
>installing Solaris from the CD-ROM, the first action while logged
>in as root was to edit /etc/passwd and change root's shell from
>/sbin/sh to /sbin/csh. Oops.
>Now, on login as root, the error message, "no shell" appears and
>returns to the login prompt.
>The problem, of course, is that csh is not in the /sbin directory.
>No other logins were created. Bummer. What can they do to
>fix this, besides installing the entire Solaris CD-ROM from
Quoting from my friend (my ex-wife, if you must know):Quote:
>The don't need to re-install, they just need to boot from CD-ROM,
>temporarily mount the "real" /etc, change root's login shell back
>to the default, and reboot.
>And repeat three times after me...
>DON'T CHANGE ROOT's LOGIN SHELL !!!
"Unfortunately I could not find a translation from the SunOS
methodology into Solaris-ese. All I could ever get from the
mount command were various errors like 'too many nodes' or
'device busy'. Perhaps I just couldn't get the disk device
name quite right. The fstab info and the mount command are
both really different in Solaris 2.3."
"Anyway, since I couldn't find a fix, I re-loaded Solaris off
the distribution CD -- also discovering that when I initially
took the Quick Install, I didn't get everything I needed anyway
- and this process overwrote the passwd file that I had messed up."
Thanks to all,