|
Bugzilla – Full Text Bug Listing |
| Summary: | Generic sudo profile | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | l.l.g.m.wolfs |
| Component: | Visudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | NEW --- | ||
| Severity: | high | CC: | crostrogarcia, mdkavya |
| Priority: | high | ||
| Version: | 1.6.3 | ||
| Hardware: | Other | ||
| OS: | Other | ||
| URL: | http://askubuntu.com/questions/45035/disable-sudo-permission-to-user-from-command-line | ||
| Attachments: | sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set | ||
|
Description
l.l.g.m.wolfs
2001-08-23 06:03:52 MDT
I like this idea and will consider doing something like it in a future release (but not for 1.6.4). Hello, I have the following problem: I want to remove sudo permission. Every time while compiling i got to give sudo which would effect further. So I jus want to remove sudo from root. Thanks in advance, Kavya Created attachment 543 [details]
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
Whenever I write sudo in the terminal it writes "sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set" and ignores the command. I tried the sudo -v command but it does the same thing; I tried too with the sysctl -deprecated but it is no use; I just do not know what to do.
That message is trying to tell you that /usr/bin/sudo has either the wrong permissions or wrong owner. It must be owned by root and have the set-user-ID bit set. It you run "ls -l /usr/bin/sudo" it should look similar to this: -rwsr-xr-x 1 root root 2366560 May 6 16:35 /usr/bin/sudo You can see that the binary is owned by root (the group is not important) and the set-user-ID bit it set in the file mode (that is the 's' after the 'rw'). If yours doesn't look like that you can repair it by running the following as root: chown root /usr/bin/sudo chmod 4755 /usr/bin/sudo If your root user doesn't have a password set (as is the case on Ubuntu) you will probably need to boot into single user mode to fix the permissions. |