Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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?
sudo useradd -g mygroup testuser
It is better to create new users with adduser instead of useradd. In this way you won't have this problem.
to set a password for the new user I ran
sudo passwd testuser
Required, but never shown