Results 1 to 6 of 6
I made another account called xavier earlier today.
I then proceed to add that account through visudo.
When I use sudo, I get this error.
sudo: must be setuid root
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-20-2012 #1Just Joined!
- Join Date
- Nov 2012
- Posts
- 10
New account returns sudo: must be setuid root
I made another account called xavier earlier today.
I then proceed to add that account through visudo.
When I use sudo, I get this error.
sudo: must be setuid root
_________
Here is the output of ls -la $(which sudo)
from the root account..
Code:---x--x--x 1 root root 219272 Sep 24 19:48 /usr/bin/sudo
- 11-20-2012 #2Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,746
Hello and welcome!
It is odd that your distro did not install it that way. Did you modify the file? What is your distro?
If it is RPM-based, try this:
you can make it suid with this command (run as root):Code:rpm -qV sudo
Code:chmod +x /usr/bin/sudo
- 11-20-2012 #3Just Joined!
- Join Date
- Nov 2012
- Posts
- 10
I apologize, I thought I posted the OS. I didn't.
I don't believe I ever edited the file.
It's a server I purchased offshores, so I can only access it through SSH.
Its CentOS 6.3x
- 11-20-2012 #4Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,746
Run the rpm command I suggested. It will tell you the state of the package that owns the sudo binary.
I don't remember, but maybe CentOS ships that way, for security purposes (forcing root to manually change the binary to be suid). You can run the chmod command I suggested to fix it.It's a server I purchased offshores, so I can only access it through SSH.
Its CentOS 6.3x
- 11-21-2012 #5Just Joined!
- Join Date
- Jul 2008
- Posts
- 90
- 11-21-2012 #6Trusted Penguin
- Join Date
- May 2011
- Posts
- 3,746


Reply With Quote

