Bug 115

Summary: permission denied on sudoers file
Product: Sudo Reporter: Dan Oviatt <oviattd>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: normal    
Version: 1.6.6   
Hardware: IBM   
OS: AIX   

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.