]> granicus.if.org Git - sudo/commitdiff
Add commented out SuSE-like targetpw settings
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 28 Jul 2010 18:28:46 +0000 (14:28 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 28 Jul 2010 18:28:46 +0000 (14:28 -0400)
--HG--
branch : 1.7

sudo.pp
sudoers

diff --git a/sudo.pp b/sudo.pp
index 4ca94168d1e70ffda0b1d67f810b9e8837cfe3c9..24a64efa21a57db7566174047725cb27dd2a7eb9 100644 (file)
--- a/sudo.pp
+++ b/sudo.pp
@@ -55,6 +55,8 @@ still allow people to get their work done."
                /bin/ed - ${pp_destdir}${sudoersdir}/sudoers <<-'EOF'
                /Locale settings/+1,s/^# //
                /ConsoleKit session/+1,s/^# //
+               /allow any user to run sudo if they know the password/+2,s/^# //
+               /allow any user to run sudo if they know the password/+3,s/^# //
                w
                q
                EOF
diff --git a/sudoers b/sudoers
index 45cb861755f0317c9e779964d03b0ada4b088815..4d346a6f52d63891c28e7e9da40ac94af5650704 100644 (file)
--- a/sudoers
+++ b/sudoers
 ##
 ## User privilege specification
 ##
-root   ALL=(ALL) ALL
+root ALL=(ALL) ALL
 
 ## Uncomment to allow members of group wheel to execute any command
-# %wheel       ALL=(ALL) ALL
+# %wheel ALL=(ALL) ALL
 
 ## Same thing without a password
-# %wheel       ALL=(ALL) NOPASSWD: ALL
+# %wheel ALL=(ALL) NOPASSWD: ALL
 
 ## Uncomment to allow members of group sudo to execute any command
 # %sudo        ALL=(ALL) ALL
 
+## Uncomment to allow any user to run sudo if they know the password
+## of the user they are running the command as (root by default).
+# Defaults targetpw  # Ask for the password of the target user
+# ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'
+
 ## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
 #includedir /etc/sudoers.d