On 4 March 2011 13:21, Rich Rauenzahn <[email protected]> wrote:
> This visudo checker I've written (based on some examples from the web
> and puppet training materials) causes a dependency loop -- but only
>
I've approached the problem from another direction and we have a subversion
pre-commit hook for the sudoers file...
case $file in
*/sudoers)
OUTPUT=`/usr/sbin/visudo -c -q -f $TMPFILE 2>&1`
if [ $? -ne 0 ] ; then
echo "sudoers syntax error in $file" >&2
echo "$OUTPUT" >&2
exit 1
fi
;;
John
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.