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: (5) </ [1] 2 3 4 5 >/

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

reply to topic new topic new poll
Topic: Root password retention, DSL wont retain root PW after reboot< Next Oldest | Next Newest >
Josiah Offline





Group: Members
Posts: 25
Joined: July 2006
Posted: Aug. 04 2006,22:40 QUOTE

I have had to reset the root password everytime I reboot.  Is there a way to keep the root password after reboot?  

I want to be able to reboot the computer remotely through SSH and then login again, but I cannot, because once I enter the reboot command, the password erases and I can no longer SSH into the system.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 05 2006,00:12 QUOTE

Passwords are stored in /etc/shadow.  Back up this file and restore it to keep your password.

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





Group: Members
Posts: 25
Joined: July 2006
Posted: Aug. 05 2006,01:48 QUOTE

Thanks for the suggestion, but this did not work.  Here is what I did:

I went to Emelfm, and typed in the panel on the left "/etc" and hit enter.  I scrolled through this list until I found a directory called shadow (there were two actually, "shadow" and "shadow-") and then clicked it, and clicked "add2filetool".  Emelfm then prints "end of output."  If i try to type in the directory, emelfm prints "you do not have read access on that directory".

Once I rebooted, my root password was not recognized through SSH.

I did happen to notice that there was an entry in /etc called "passwd".  Could that be what I want to add to filetool.lst?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 05 2006,05:30 QUOTE

/etc/shadow is a regular file, not a directory.  User dsl does not have read access to this file, but the backup/restore is done by root so that's not important.
/etc/passwd contains user info such as user id and default shell.

Do you have backup/restore enabled?


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





Group: Members
Posts: 25
Joined: July 2006
Posted: Aug. 05 2006,19:13 QUOTE

Yes I do have backup restore enabled.  I have backup restore writing to hda3, which is a type 83 linux ext2 partition.  Other far less important settings (resolution, keyboard style, etc) backup and restore seemlessly.  I am using emelfm as "super user."

Do you have any other thought on what might be causing this?
Back to top
Profile PM 
23 replies since Aug. 04 2006,22:40 < Next Oldest | Next Newest >

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

Pages: (5) </ [1] 2 3 4 5 >/
reply to topic new topic new poll
Quick Reply: Root password retention

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