LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   useradd not working (https://www.linuxquestions.org/questions/linux-newbie-8/useradd-not-working-314850/)

haora 04-19-2005 08:21 AM

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

reddazz 04-19-2005 08:32 AM

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".

haora 04-19-2005 08:37 AM

Thanks! it worked!


All times are GMT -5. The time now is 12:56 PM.