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.
problem in /etc/passwd entry - root
Name: gunasekaran Date: April 9, 2003 at 03:20:58 Pacific OS: Solaris 5 CPU/Ram: 128 MB
Comment:
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 options, exec login also , i couldn't recover it. Is there any solution to recover except reinstall the o.s
Name: David Perry Date: April 9, 2003 at 04:24:31 Pacific
Reply:
The same answer applies to you as someone who lost the root password. You will need to boot from cd then mount your existing installation and fix the /etc/passwd file. Have a look through the archives here as it has been dealt with in detail many times.
0
Response Number 2
Name: jayfoo Date: April 9, 2003 at 07:06:20 Pacific
Reply:
1: Insert Solaris CD in cd drive and from ok prompt run command: boot cdrom -s 2:This will take you single user mode # fsck /dev/rdsk/c0t0d0s0. Answer y to clear all. 3:mount /dev/dsk/c0t0d0s0 /a 4:cd /a/etc 5:TERM=sun 6:export TERM 7:vi /a/etc/shadow remove apssword form password field of root. and save file with wq! 8: cd / 9:unmount /a 10: init 6 You will be prompted for password for root.
Summary: 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 ...
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 ...