I know this is an old topic but I am struggling to find an answer.
Every 4 months I have to create 150 new users with a password, and have them added to default groups with a working home directory every 4 months.
But this command
sudo adduser testuser02 --disabled-password && sudo passwd testuser02 testpassword02
stops and asks questions for Full Name, Room Number, Work Phone, Home Phone, Other and "Is the information correct?"
Having to press ENTER six times is not how I want to do this!
Also the passwd command fails.
I want to use adduser because it creates the home folder and groups (access permissions) properly.
I know useradd does a similar thing but I am struggling to make it do what I need.