Super User is a question and answer site for computer enthusiasts and power users. 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

I'm having trouble giving a user sudo access. I have Ubuntu 12.04 LTS on my new VPS.

I made a user named portaljacker, added it to the admin group, and admin group is in the sudoers file as

%admin ALL=(ALL) ALL

yet when I use sudo as portaljacker it says:

sudo: must be setuid root

I have no idea what's wrong since I did this a while ago on a previous VPS (not accessible, long story) and can't remember what I did differently.

share|improve this question
up vote 3 down vote accepted

It seems like your sudo executable has the wrong permissions. Try ls -l /usr/bin/sudo and see what it says. It should look like -rwsr-xr-x (or ---s--x--x; the s needs to be there in that position, though). If the s is not there, try running chmod u+s /usr/bin/sudo as root.

share|improve this answer
Worked exactly as you said. It showed -rwxr-xr-x. – Portaljacker Dec 31 '12 at 6:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .