Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Loss of root password , and no boot now< Next Oldest | Next Newest >
mulanee Offline





Group: Members
Posts: 28
Joined: Mar. 2006
Posted: Mar. 30 2006,20:22 QUOTE

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


--------------
Emmanuel
Back to top
Profile PM WEB 
doobit Offline





Group: Members
Posts: 912
Joined: July 2005
Posted: Mar. 30 2006,20:59 QUOTE

What kind of install do you have now?

--------------
"Help stop internet piracy...use Linux!"
Back to top
Profile PM WEB MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 31 2006,01:17 QUOTE

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.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
mulanee Offline





Group: Members
Posts: 28
Joined: Mar. 2006
Posted: Mar. 31 2006,11:49 QUOTE

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?


--------------
Emmanuel
Back to top
Profile PM WEB 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 31 2006,15:32 QUOTE

Quote
passwd  contains  various  pieces  of information for each user account.  Included is

           Login name
           Optional encrypted password
           Numerical user ID
           Numerical group ID
           User name or comment field
           User home directory
           User command interpreter

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
7 replies since Mar. 30 2006,20:22 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Loss of root password , and no boot now

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code