6

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

2
9

It is better to create new users with adduser instead of useradd. In this way you won't have this problem.

6

to set a password for the new user I ran

sudo passwd testuser

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.