search for: rmcbroom

Displaying 2 results from an estimated 2 matches for "rmcbroom".

Did you mean: mcbroom
2010 Jul 27
0
Augeas working inconsistently
...], } augeas { "sudo-$user": context => "/files/etc/sudoers", changes => $sudo_changes, } } And I see the following. If the entry isn’t in `sudoers` at all, this will add it: sudoentry { "rob": user => "rmcbroom”, } If the entry is already there, this will add the “tag” to it: sudoentry { "rob": user => "rmcbroom", tag => "NOPASSWD", } But if the user doesn’t exist and you try to add the entry with “tag” set to something, it fails: err: //...
2010 Jun 30
7
augeas and sudo woes
The following function is based on code I found here in an earlier thread. define sudoer() { augeas { "sudo${name}": context => "/files/etc/sudoers", changes => [ "set spec[last() + 1]/user ${name}", "set spec[last()]/host_group/host ALL", "set spec[last()]/host_group/command NOPASSWD: ALL", "set