Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As root, I created a new user and added to sudo group with

adduser myuser sudo

but when I try to sudo something I got the Sorry, try again. error.

The curious thing is that i can use su without any problem.

(I'm on a vps with a fresh install of ubuntu server 12.04)

share|improve this question
Have you logged out and logged in again for the change to take effect? su takes a root password while sudo takes the users own password. Are you using the correct password? – Sylwester Sep 12 '13 at 8:35
while logged in as the new user run id in a terminal what's the output? Have you set a password for the new user? – Warren Hill Sep 12 '13 at 8:37
@Sylwester yes, I also rebooted – Doc Sep 12 '13 at 8:39
@WarrenHill the id output is uid=1000(myuser) gid=1000(myuser) groups=1000(myuser),27(sudo) and yes, I've set the new user's password – Doc Sep 12 '13 at 8:41
up vote 1 down vote accepted

With su you use the root password. With sudo, you use your account password.

The errors looks like you've been entering the root password.

share|improve this answer
omg, it was that! I'm such a noob!! – Doc Sep 12 '13 at 8:45

Sorry, try again error means the password is wrong, this can be because changes have not been effected(logging in and out can solve this), or you are somehow entering the wrong details .

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.