Bug 115 - permission denied on sudoers file
permission denied on sudoers file
Status: RESOLVED WORKSFORME
Product: Sudo
Classification: Unclassified
Component: Sudo
1.6.6
IBM AIX
: normal normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2003-05-28 13:19 MDT by Dan Oviatt
Modified: 2004-08-05 21:35 MDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Oviatt 2003-05-28 13:19:32 MDT
I have compiled sudo for AIX for a while now but I am seeing a new bug on AIX 
5.1 for Sudo 1.6.6. When anyone (even root) tries to run sudo they get the 
following error:

/usr/local/bin/sudo2: can't open /usr/local/etc/sudoers: Permission denied

This was with my custom sudoers file, and even testing with the default sudoers 
file and root tryingf to sudo a command I receive the same error. The 
permissions on sudo are --s--x--x and the sudoers file is r--r----- while both 
are root:system (0 uid and 0 gid). I am stumped.
Comment 1 Todd C. Miller 2004-08-05 17:35:17 MDT
Sudo uses group permissions to read the sudoers file by default in order to play more nicely with NFS. 
 If /usr/local/etc is NFS-mounted and gid 0 is mapped to a different gid on the server you would see an 
error like this.  There's not really a lot for me to go on here.