HD Install :: Root password retention
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.
Passwords are stored in /etc/shadow. Back up this file and restore it to keep your password.
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?
/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?
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?
Next Page...
original here.