Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
root shell change in /etc/passwd
Name: Ian Date: April 23, 2001 at 06:27:14 Pacific
Comment:
I manually changed the shell for root from sh to csh in the /etc/passwd file and cannot login as root any longer. Give message "cannot find shell". I've tried booting with the CD but as if I was trying to recover a lost password but cant seem to get that to work for me. Any suggestions?
Name: Andy Malato Date: April 28, 2001 at 23:34:15 Pacific
Reply:
Did you make a mistake in the /etc/passwd entry? chances are you didn't place the proper place to the csh shell, usually /bin/csh. I'd try logging in as a regular user and SU to root and examine the passwd file and check for errors.
0
Response Number 2
Name: daddy Date: March 9, 2002 at 04:09:47 Pacific
Summary: when i login as root ,i mistakenly change the login shell value that is specified in /etc/passwd file. obiviously i can't login as root, i can't change the entry also. i try the 'su' with all option...
Summary: I got stuck with my ROOT access. After I wrongly changed the ROOT's shell in /etc/passwd (/sbin/bash instead of /bin/bash) and wished to checkit it, I have opened new console. I was using Xwin32 on PI...
Summary: FYI .... Some admins still recommend against changing the root shell on a Solaris systems. Ask why and you may be told that root needs a statically linked shell which is not dependent on the dynamic ...