SUMMARY update: no root shell

From: Richard Young (
Date: Wed Jan 20 1999 - 12:49:48 CST

I've received lots of help on this. Most everyone's suggestions were
to boot from cdrom. This procedure is in the archive, as some
of you pointed out.
So the problem was resolved by:

 boot cdrom -s
  mount /dev/dsk/<root partition> /a
  vi /a/etc/passwd

ok> boot

Two persons suggested ftp the password file to another machine
(logging in as root ) edit the password file and ftp it back.
I would have preferred this approach, but the problem was already

Thanks to the following respondents:
Otto, Doug" <>
"Eric D. Pancer" <>
Stefan Jon Silverman <>
David Evans <>
Brion Leary <>
Tim Evans <>
Marina Daniels <>
"Scott D. Yelich" <>
Benjamin Kearns <>
Tim Carlson <>
Matthew Stier <>
Michael Cunningham <>
Robert Hayne <>
Krishna Kumar K <>
Umesh Shrikrishna Potbhare <>
Andy De Petter <>
Rodney Wines <>
Olafur Osvaldsson <>
Scott Pitsley <>
Alan Reichert <>
Peter Polasek <>
Rick Niziak <>
Greg Polanski <>

Original question:

My co-worker editted his password file on a Solaris 2.5.1 to change
root's shell from sh to csh. Unfortunately, the editting change was
from /usr/sbin/sh to /usr/sbin/csh. On his system, sh exist on /usr/sbin,
but csh did not. So now, he is unable to log-in as root nor reboot
as single-user ( No shell error ). The OS did not offer a default shell!

What is the procedure to reboot from cdrom in order to correct the
/etc/passwd file. Or, is there a simpler way to gain root access??

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:14 CDT