M HYPE SPLASH
// news

what is the default password when you create new user in ubuntu?

By Emma Valentine

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?

4

2 Answers

You 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.

If you don't want to set password, you can do it by

passwd -d username

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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