Hello Neill, I'll try it. It's on my company linux laptop not on my computer here at home, so I can't try it now but I'll give a feedback to the list.
Thanks for now and have a nice remaining of the week end Cheers Yvan On 7.07.2006, you wrote: > On reading the password file man page and the shadow one, the following > seems reasonable > (I ain't trying it and locking my root out as well :-) > > change passwd to be > root:*:0:0:root:/root:/bin/bash > where the * hopefully means you can set a password with passwd. > and change the shadow file to be > root::<same number as other fields>:0:99999:7::: > > HTH > > Neill > > Neill Jones wrote: >> 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 >> ____________________________________________________ >> > > > ___________________________________________________________ Now you can > scan emails quickly with a reading pane. Get the new Yahoo! Mail. > 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 > ____________________________________________________ > Regards ____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________
