[augeas-devel] [Augeas] #177: Error adding entry to sudoers
Augeas
trac at fedorahosted.org
Sun Jan 16 02:42:02 UTC 2011
#177: Error adding entry to sudoers
-----------------------+----------------------------------------------------
Reporter: fsweetser | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: 0.7.4
Keywords: sudoers |
-----------------------+----------------------------------------------------
I'm trying to add this line to my sudoers file:
{{{
netreg ALL=NOPASSWD:/etc/rc.d/init.d/dhcpd
}}}
Based on manually adding the line and examining the parsed results, this
is the input I'm feeding to augtool to try to create the line:
{{{
set /files/etc/sudoers/spec[user = 'netreg' and host_group/command =
'/etc/rc.d/init.d/named']/user netreg
set /files/etc/sudoers/spec[user = 'netreg' and host_group/command =
'/etc/rc.d/init.d/named']/host_group/host ALL
set /files/etc/sudoers/spec[user = 'netreg' and host_group/command =
'/etc/rc.d/init.d/named']/host_group/command /etc/rc.d/init.d/named
set /files/etc/sudoers/spec[user = 'netreg' and host_group/command =
'/etc/rc.d/init.d/named']/host_group/command/tag NOPASSWD
}}}
If I run those sets with the line already in sudoers, save does nothing,
just as I would expect. If, however, the line is not already there, it
errors out. The full error message is rather long, so I'll attach it to
the ticket as a file rather than cut and pasting the whole monster in.
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/177>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list