useradd not working
Hi all, I'm trying to create a new user in my box...., and this is what I do:
"sudo useradd -r login_name -p password" And even though the user is created, when I do: "su login_name" and enter the password, it says "incorrect password"..., what's up with that??? I'm sure I'm entering the right password...., how come it doesn't work???? Any ideas??? Thanks in advance.... Fernando |
If you use "useradd", then don't set the password using the -p flag because it doesn't encrypt the password. You need to set the password using the "passwd" command as root after creating the user e.g. "passwd username".
|
Thanks! it worked!
|
All times are GMT -5. The time now is 08:30 AM. |