1

I have a hooks file, in the hooks folder, that looks like this:

echo "root:rootpw" | chpasswd    
echo "user:userpw" | chpasswd

After boot, Debian asks for user and password. When I type user along with the password above it does NOT work. But, if I type root with the password then I can login?

After that I looked at the shadow file, but there is NO user in the shadow file.

ld config .. with username=user ..

Any solution?

  • 1
    Have you added the user user to the system prior to any of this? You generally use a command such as useradd or adduser to do this. – slm Jun 1 '14 at 14:41
  • what version of debian ? – Kushagra Karira Jan 25 at 16:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.