Loss of root password , and no boot nowForum: HD Install Topic: Loss of root password , and no boot now started by: mulanee Posted by mulanee on Mar. 30 2006,20:22
Hi there,After the loss of my root password , I tried to change the passwd file. Unfortunately , nothing worked. At this moment , I can boot , and I get a big amount of sorry! After a ctrl C , I can access to a strange login , but sudo or su commands don't want to work. I can change passwd file , but for writing what inside? Is it the only reason why? What can I do apart reinstall everything? Thanks in advance Posted by doobit on Mar. 30 2006,20:59
What kind of install do you have now?
Posted by mikshaw on Mar. 31 2006,01:17
One thing you can do is copy the messed-up file(s) from a liveCD or ISO. If you have any additional users they may not work anymore, but at least your root and dsl accounts should be ok.
Posted by mulanee on Mar. 31 2006,11:49
I have now the console with an undefined ID.sudo isn't allowed.(sorry...go away) I've nevertheless /etc/passwd ability to modify Is there connection between the passwd file with something else? I can copy - if I find it - the passwd file from live CD to HDD, but what about the root password? Posted by mikshaw on Mar. 31 2006,15:32
Regular passwords are stored in /etc/shadow. The original file does not have a root password. If you have made changes to any other vital files, please let us know. Posted by mulanee on Mar. 31 2006,20:18
I've done no other change than in passwd file.Unfortunately , I lost too the first line (root user) of the regular passwd file. If I can get it (1st line of stock file) , and if I write it to my own file , do you think it's enough to work? Posted by mulanee on April 17 2006,08:43
By adding the first line of /etc/passwd with root user , as ID=0 , I solved the problem.
Posted by doobit on April 17 2006,11:55
Good job sorting that out! Thanks for the report!
|