I created new users from the terminal using sudo useradd -g mygroup testuser
but I wasn’t prompted to set a password? why was that? the users have now been created but I need to set a password for them, so how can I do this?
Thanks
I created new users from the terminal using sudo useradd -g mygroup testuser
but I wasn’t prompted to set a password? why was that? the users have now been created but I need to set a password for them, so how can I do this?
Thanks
It is better to create new users with adduser
instead of useradd
. In this way you won't have this problem.
you can set the password with the root user after creating the user
root@yourpc:~# sudo passwd username
don't forget to run it on the root user. or you can just create your user with adduser
that asks password itself.
For some reasons like -gid
you might need to run the first command.
adduser
instead: http://askubuntu.com/questions/345974/what-is-the-difference-between-adduser-and-useradd – muru Jun 28 '14 at 22:54