HD Install :: Password not saving on frugal install



Thanks to all the fine folks who continue to answer my (and many others') stream of questions.

Here's my latest: I have a frugal install with SSH server starting at boot. When I try to connect from another PC, I get an "access denied" message. If I change the password for ROOT and\or DSL then I can connect.

sudo passwd root

The problem is that the new password(s) don't stick from one boot to the next. Is there a way I can make them stay? Am I missing something from  "filetool.lst"?

Is /etc/shadow in your filetool.lst? That's where passwords are kept.
I don't believe it is. I'll give it a try. Thanks again for the tip. Your help is greatly appreciated.
Another dirty trick is to add permanent users in /opt/bootlocal.sh and subsequently modify passwords. These users will live through subsequent reboots.
Here's a sample of the code I added to bootlocal.sh

Code Sample
useradd -m -s /bin/bash utilisateurlambda
chpasswd << EOF
utilisateurlambda:nixbekannt
dsl:charasjow
root:beet
EOF


But now, you'll run into the next hurdle which is that the RSA keys aren't stored permanently either. I vaguely remember having seen some posts on the subject. As for me, I simply do:

Code Sample
rm .ssh/known_hosts
on the ssh client machine and then connect as user utilisateurlambda or dsl. Works a treat.
Happy hunting... ???


original here.