2
1
I rented a server (ubuntu 12.04). They gave me a root user account.
Next, I went in and created a new user using:
# adduser <newusername>
And added a password.
The new user account works fine. I can SSH into that account with its username and password.
However, when I'm in my new user account, I can no longer use:
sudo
If I do something like:
sudo apt-get install build-essential
or something like:
sudo su
I get the message:
sudo: must be setuid root
Help?
(I'm aware of similar questions asked before, but couldn't find my solution there.)
1Normally
/usr/bin/sudo
should be owned by root and yes, the setuid bit must be set. Can you do als -l $(which sudo)
? – noggerl – 2013-10-15T20:52:47.177Thanks for helping. I did it, here's the output "-rwxr-xr-x 1 root root 69708 Jun 1 2012 /usr/bin/sudo" – thanks_in_advance – 2013-10-15T20:56:54.340
Just posted an answer. But please do me a favor: before you proceed with your server and maybe something nasty happens read a few tutorials about internet server security and linux administration basics, because setuid on the wrong executables can be very dangerous. – noggerl – 2013-10-15T21:03:46.730