Bugzilla – Bug 115
permission denied on sudoers file
Last modified: 2004-08-05 21:35:17 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.
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.