My passwd file looks like yours with an x after the first : but the
shadow one doesn't
- mine is
root:<password bits here>:<a number here>:0:99999:7:::
Maybe you deleted too much info as I have 8 colons here whereas you only
have 4
The bit which says <a number here> is the same number for all of the
other entries in the shadow file.
HTH
Neill
Yvan Gutknecht wrote:
Hello,
I forgot my root password and recovered it the following way:
Booted my system with a Knoppix Live CD.
Mounted my root partition
Edited the following files:
/etc/passwd
/etc/shadow
so that the line containing root looked the following way:
passwd -> root::0:0:root:/root:/bin/bash
shadow -> root::::
Now I can login and root has no password.
Now I wanted to set the root password the following way:
[EMAIL PROTECTED] root]# passwd
Changing password for user root.
New UNIX password:
Retype new UNIX password:
passwd: User not known to the underlying authentication module
[EMAIL PROTECTED] root]#
And I get the message:
User not known to the underlying authentication module
Hmmm? What is wrong?
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________