Can't login after modifying /etc/passwd
I can just hear the thoughts as the thread is read... I'll just say I know I messed up real bad and any/all help I can get to retrieve login short of reinstalling would be awesome. The system is Solaris 10 on a SunBlade 1000 with a gig of RAM.
The problem: I modified the /etc/passwd file and changed the shell for root but included an extra / in the path for the shell. Obviously, now, when attempting to login with the root account, I'm prompted with, "Unable to login, invalid shell".
What I've tried: I got to the ok> prompt and typed boot cdrom -s and modified the /etc/passwd to the correct path for the shell but, lo and behold, I'm probably not modifying the right file considering I booted off a cdrom disk. So, the question becomes, I suppose I need to mount my hard drive from the # prompt so that I can modify the passwd file. The prroblem is, I'm not entirely sure what that should be. I know I have an ide hard drive and I did try to mount what I thought to be the path, but obviously I'm doing something wrong. The system is in another side of the building so I'll have to go back and forth to it when information is requested which is no big deal, just FYI. Any/all help would be awesome. Perhaps there's a faster way to do this than booting from cdrom, but I'm not the guru on Solaris 10.
Thanks in advance and please let me know if I need to include more information than what I've given.
John aka loadedmind