[augeas-devel] [Augeas] #188: #includedir in sudoers is directive, not a comment

Augeas trac at fedorahosted.org
Thu Mar 17 23:16:42 UTC 2011


#188: #includedir in sudoers is directive, not a comment
----------------------+-----------------------------------------------------
 Reporter:  domcleal  |       Owner:  lutter
     Type:  defect    |      Status:  new   
 Priority:  minor     |   Milestone:  next  
Component:  Augeas    |     Version:  0.8.0 
 Keywords:  sudoers   |  
----------------------+-----------------------------------------------------
 In /etc/sudoers, a line beginning with "#includedir" is not a comment but
 is in fact a valid directive to include other files from a directory, as
 per the comment above it here.

 {{{
 [dcleal at iridium ~]$ sudo tail -2 /etc/sudoers
 ## Read drop-in files from /etc/sudoers.d (the # here does not mean a
 comment)
 #includedir /etc/sudoers.d

 [dcleal at iridium ~]$ sudo augtool 'match /files/etc/sudoers/*[. =~
 regexp(".*sudoers\.d.*")]'
 /files/etc/sudoers/#comment[61] = # Read drop-in files from /etc/sudoers.d
 (the # here does not mean a comment)
 /files/etc/sudoers/#comment[62] = includedir /etc/sudoers.d
 }}}

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/188>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list