Answer the question
In order to leave comments, you need to log in
Created a user in Ubuntu, but the password doesn't match?
I created a new user on the server (Ubuntu 18.04), but I can't sudo because the password is wrong. At first I thought that I set the wrong password (which is unlikely, since I entered the password 2 times). Deleted the user and recreated (set the password the same as root):
adduser sergey
usermod -aG sudo sergey
su - sergey
next: sudo ls
[email protected]:~$ sudo ls
[sudo] password for sergey:
Sorry, try again.
[sudo] password for sergey:
Answer the question
In order to leave comments, you need to log in
This helped:
passwd sergey
PS: Weird, someone just gave an answer here, but then I refreshed the page and the answer was gone.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question