Is there a way to create a new standard user, who can log in immediately? When I create users through a shell script, the users do get created, but they are disabled. Is there are way to create them so that they can log in without additional actions?
I use Ubuntu 16.04
useradd
where no password is given to the user hence the user is disable until a password is set... – George Udosen May 13 '17 at 16:58-p user_password
option in the script that should solve the problem – George Udosen May 13 '17 at 17:15echo username:new_password | chpasswd
here: http://stackoverflow.com/questions/2150882/how-to-automatically-add-user-account-and-password-with-a-bash-script. Like this one as it encrypts the password – George Udosen May 13 '17 at 17:17newusers
command: see for example Importing users that will be installed by programs – steeldriver May 13 '17 at 17:23adduser
And what I mean is that you can't log in into the newly created account, until you manually enable it – Lenton May 13 '17 at 17:28