Bug 194 - Incorrect permissions on /etc/sudoers after using visudo
Incorrect permissions on /etc/sudoers after using visudo
Status: RESOLVED INVALID
Product: Sudo
Classification: Unclassified
Component: Visudo
1.6.8
Other Linux
: normal enhancement
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-12 10:29 MDT by Jeremy Vanderburg
Modified: 2005-10-28 14:42 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 Jeremy Vanderburg 2005-08-12 10:29:40 MDT
When using visudo to edit the /etc/sudoers file, the permissions are reset to 
chmod 640, which causes sudo to complain that the mode of /etc/sudoers is 0640 
and should be 0440.  The mode of the file must then manually be changed back to 
440.  This is only a minor annoyance, but may be worth looking in to.
Comment 1 Todd C. Miller 2005-10-28 12:42:24 MDT
This sounds like you have a version of visudo that doesn't match your sudo binary.  visudo already 
does set the mode on sudoers to be non-writable.