aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sudo
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2010-12-07 00:16:44 +0000
committerNicolas Vigier <boklm@mageia.org>2010-12-07 00:16:44 +0000
commit995ade881f004f4e29d392f56bb2cbf521c8e526 (patch)
treeac2b4234d4fd399d689d842815fb72cdca3b829c /modules/sudo
parent3617efb87e9f205599c3d5c4fe74554560a82908 (diff)
downloadpuppet-995ade881f004f4e29d392f56bb2cbf521c8e526.tar
puppet-995ade881f004f4e29d392f56bb2cbf521c8e526.tar.gz
puppet-995ade881f004f4e29d392f56bb2cbf521c8e526.tar.bz2
puppet-995ade881f004f4e29d392f56bb2cbf521c8e526.tar.xz
puppet-995ade881f004f4e29d392f56bb2cbf521c8e526.zip
add defaults
Diffstat (limited to 'modules/sudo')
-rw-r--r--modules/sudo/templates/sudoers13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/sudo/templates/sudoers b/modules/sudo/templates/sudoers
index 80f4bfd7..5ac87f78 100644
--- a/modules/sudo/templates/sudoers
+++ b/modules/sudo/templates/sudoers
@@ -1 +1,14 @@
+Defaults env_reset
+Defaults env_keep = "COLORS DISPLAY HOSTNAME HISTSIZE LS_COLORS"
+Defaults env_keep += "MAIL PS1 PS2 USERNAME LANG LC_ADDRESS LC_CTYPE"
+Defaults env_keep += "LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES"
+Defaults env_keep += "LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE"
+Defaults env_keep += "LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY"
+
+Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin
+
+## Allow root to run any commands anywhere
+root ALL=(ALL) ALL
+
+## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d