I have created a new user by using useradd
command e.g.:
sudo useradd acreddy
Then new user is created but it is asking for a password what is the password?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityYou need to set a password for the user. Use the passwd
command:
Usage: passwd [options] [LOGIN]
So if you want to set a password for the new user, you type in:
sudo passwd acreddy
and you're good.
adduser
instead ofuseradd
su - acreddy
. It will not ask for password and you will be logged in as acreddy. But only in that terminal.-
sudo -i
to switch to root. Then trysudo - <username>
.