mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-22 01:49:11 +00:00
Remove old bits about sudo setuid problems that should have been
cleaned up in changeset 7917:fa4894896d8a. Also update the mode of sudo to 04755 to match current packaging.
This commit is contained in:
parent
6dff70db03
commit
adce34358c
@ -22,7 +22,7 @@ A) Sudo must be setuid root to do its work. Either /usr/local/bin/sudo
|
||||
is not owned by uid 0 or the setuid bit is not set. This should have
|
||||
been done for you by "make install" but you can fix it manually by
|
||||
running the following as root:
|
||||
# chown root /usr/local/bin/sudo; chmod 4111 /usr/local/bin/sudo
|
||||
# chown root /usr/local/bin/sudo; chmod 4755 /usr/local/bin/sudo
|
||||
|
||||
Q) Sudo compiles and installs OK but when I try to run it I get:
|
||||
effective uid is not 0, is /usr/local/bin/sudo on a file system with the
|
||||
@ -31,17 +31,13 @@ A) The owner and permissions on the sudo binary appear to be OK but when
|
||||
sudo ran, the setuid bit did not have an effect. There are two common
|
||||
causes for this. The first is that the file system the sudo binary
|
||||
is located on is mounted with the 'nosuid' mount option, which disables
|
||||
setuid binaries. The other is that sudo is installed on an NFS-mounted
|
||||
file system that is exported without root privileges. By default, NFS
|
||||
file systems are exported with uid 0 mapped to a non-privileged uid
|
||||
(usually -2).
|
||||
|
||||
You need to do something like
|
||||
`chmod 4111 /usr/local/bin/sudo'. Also, the file system sudo resides
|
||||
on must *not* be mounted (or exported) with the nosuid option or sudo
|
||||
will not be able to work. Another possibility is you may have '.' in
|
||||
your $PATH before the directory containing sudo. If you are going
|
||||
to have '.' in your path you should make sure it is at the end.
|
||||
setuid binaries. The output of the "mount" command should tell you if
|
||||
the file system is mounted with the 'nosuid' option. The other possible
|
||||
cause is that sudo is installed on an NFS-mounted file system that is
|
||||
exported without root privileges. By default, NFS file systems are
|
||||
exported with uid 0 mapped to a non-privileged uid (usually -2). You
|
||||
should be able to determine whether sudo is located on an NFS-mounted
|
||||
filesystem by running "df `which sudo'".
|
||||
|
||||
Q) Sudo never gives me a chance to enter a password using PAM, it just
|
||||
says 'Sorry, try again.' three times and exits.
|
||||
|
Loading…
x
Reference in New Issue
Block a user