[augeas-devel] [Augeas] #376: sudoers lens cannot parse group names with upper-case characters

Augeas trac at fedorahosted.org
Tue Dec 3 08:36:21 UTC 2013


#376: sudoers lens cannot parse group names with upper-case characters
---------------------+---------------------
 Reporter:  frscwm   |       Owner:  lutter
     Type:  defect   |      Status:  new
 Priority:  major    |   Milestone:  next
Component:  Augeas   |     Version:  1.0.0
 Keywords:  sudoers  |  Blocked By:
 Blocking:           |
---------------------+---------------------
 The sudoers lens fails to parse group names in a sudoers file when they
 contain upper-case ASCII charcters.

 To reproduce:
 - create /etc/sudoers.d/test as follows
 {{{
 Cmnd_Alias COMMAND = /bin/bash
 %group ALL = (user) NOPASSWD: COMMAND
 }}}
 - {{{augtool -b}}}
 - {{{ls /files/etc/sudoers.d/test}}}
 => output is as expected:
 {{{
 Cmnd_Alias/ = (none)
 spec/ = (none)
 }}}
 - quit augtool
 - {{{visudo /etc/sudoers.d/test}}}
 - change the 'd' of the group name to 'D'
 - save the changes
 - {{{augtool -b}}}
 - {{{ls /files/etc/sudoers.d/test}}}
 => no output at all (which is unexpected)
 - {{{print /augeas//error}}}
 => there's an error log saying that /etc/sudoers.d/test could not be
 parsed by the sudoers lens.

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




More information about the augeas-devel mailing list