summaryrefslogtreecommitdiff
path: root/security/sudo/files/patch-plugins__sudoers__sudoers.in
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2018-04-19 13:09:58 +0000
committerRenato Botelho <garga@FreeBSD.org>2018-04-19 13:09:58 +0000
commit9ba9264b6b72ded412639e615a351ea795b0a413 (patch)
tree318de38562aed376d51133e1524488217114c45c /security/sudo/files/patch-plugins__sudoers__sudoers.in
parentmultimedia/plexmediaserver: Update to 1.12.3.4973 (diff)
Add an example of prompt that shows which user password is being expected.
It's useful when targetpw option is set to avoid confusion. PORTREVISION was not bumped because a new commit is going to happen soon with one more change and it will bump it. PR: 221264 Submitted by: Rebecca Cran <rebecca@bluestop.org> Sponsored by: Rubicon Communications, LLC (Netgate)
Notes
Notes: svn path=/head/; revision=467767
Diffstat (limited to 'security/sudo/files/patch-plugins__sudoers__sudoers.in')
-rw-r--r--security/sudo/files/patch-plugins__sudoers__sudoers.in12
1 files changed, 11 insertions, 1 deletions
diff --git a/security/sudo/files/patch-plugins__sudoers__sudoers.in b/security/sudo/files/patch-plugins__sudoers__sudoers.in
index 75f944052939..06a344c90cdb 100644
--- a/security/sudo/files/patch-plugins__sudoers__sudoers.in
+++ b/security/sudo/files/patch-plugins__sudoers__sudoers.in
@@ -1,4 +1,4 @@
---- plugins/sudoers/sudoers.in.orig 2017-01-14 04:30:15 UTC
+--- plugins/sudoers/sudoers.in.orig 2018-01-15 17:30:32 UTC
+++ plugins/sudoers/sudoers.in
@@ -32,6 +32,14 @@
##
@@ -15,3 +15,13 @@
## You may wish to keep some of the following environment variables
## when running commands via sudo.
##
+@@ -91,6 +99,9 @@ root ALL=(ALL) ALL
+ ## 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'
++
++## Uncomment to show on password prompt which users' password is being expected
++# Defaults passprompt="%p's password:"
+
+ ## Read drop-in files from @sysconfdir@/sudoers.d
+ ## (the '#' here does not indicate a comment)