Unable to login as 'root'
This morning I tried to login as root in fedora machine it throws:
sh-3.00 # passwd root passwd:unknown user name 'root' I checked the /etc/passwd file and it says: root:x:500:500:/home/root:/bin/bash I tried to change 500 to 0 and again tried. But to my surprise,it threw the same error: passwd:unknown user name 'root' and the file /etc/passwd get changed to root:x:500:500:/home/root:/bin/bash again Also ,I checked the root directory..its there? If I run #useradd root it says: useradd:unknown gid 100 No group "mail" exists,creating mail spool with mode 0600 Can anyone help me whats going on here.???????plzzz I am stucked !!!!! |
How about shadow: is installed, /etc/shadow exists, any indication that shadow libraries not properly installed or referenced (ldd on /etc/passwd shows /lin/libshadow.* refs when shadow is used)?
Can you "su -" to root? |
Ya ..shadow file exists.the contents are :
root:!:!:13840:0:999999:0:7: bin: daemon: lp:sync:passwd.............all entries are there. I ran #ldd /etc/passwd and it threw: you dont have exception permission for /etc/passwd not a dynamic executable #su - su:user root doesnt exist aNY IDEA?? |
Sounds odd, but this also looks odd:
Quote:
You haven't tried to clone the root user, or make another user have root ID (0) - because such things, when failing, could cause something like this. Read passwd trough and first of all make sure there is no other ID 0 user there.. If you can't figure out what it is, or suspect there's a possibility somebody got in and is causing that, a clean overwrting reinstallation of your OS is the way to go, to be fairly sure. Quote:
|
I am logged in as single user .So its clear that sh# will be displayed.
Since I was not able to login as normal runlevel I logged in runlevel 1 |
All times are GMT -5. The time now is 11:47 PM. |