[augeas-devel] [PATCH] sudoers on FreeBSD
Mathieu Arnold
mat at mat.cc
Thu Nov 4 14:49:34 UTC 2010
Hi,
On FreeBSD, sudo is a third party package, and it's installed in
/usr/local, it's conf is in /usr/local/etc/sudoers, here's a small patch :-)
--
Mathieu Arnold
-------------- next part --------------
>From 2a4be7cdb8f14dd89326e891c8c633626574cc5a Mon Sep 17 00:00:00 2001
From: Mathieu Arnold <mat at FreeBSD.org>
Date: Thu, 4 Nov 2010 15:33:54 +0100
Subject: [PATCH 4/4] On FreeBSD (at least) the sudoers file is in /usr/local/etc/.
---
lenses/sudoers.aug | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/lenses/sudoers.aug b/lenses/sudoers.aug
index 6c855c1..cab8fbf 100644
--- a/lenses/sudoers.aug
+++ b/lenses/sudoers.aug
@@ -484,7 +484,9 @@ let lns = ( empty | comment | alias | defaults | spec )*
(* Variable: filter *)
let filter = (incl "/etc/sudoers")
+ . (incl "/usr/local/etc/sudoers")
. (incl "/etc/sudoers.d/*")
+ . (incl "/usr/local/etc/sudoers.d/*")
. Util.stdexcl
let xfm = transform lns filter
--
1.7.3.2
More information about the augeas-devel
mailing list