I can't login with newly created user
I'm having problems creating new users and making them function properly:
Code:
useradd -d /home/testuser -g users -m -p dropdead -s /bin/bash testuser Code:
T23 root # su - testuser |
Become root and then do
passwd testuser |
The command: useradd fred -p testing does create the user ok but if you look in the /etc/shadow file, you can see the plain text password. That is most likely why the password fails. I don't know off hand what the command is to make -p create an encrypted password.
The easiest sollution which I know of for now is use the command: passwd fred which will prompt you ( root user ) for the new password. Then look at /etc/shadow as you will see the password is encrypted now. |
All times are GMT -5. The time now is 01:29 AM. |