mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 22:30:38 -04:00
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)
27 lines
1.1 KiB
Text
27 lines
1.1 KiB
Text
--- plugins/sudoers/sudoers.in.orig 2018-01-15 17:30:32 UTC
|
|
+++ plugins/sudoers/sudoers.in
|
|
@@ -32,6 +32,14 @@
|
|
##
|
|
## Defaults specification
|
|
##
|
|
+## Uncomment if needed to preserve environmental variables related to the
|
|
+## FreeBSD pkg utility and fetch.
|
|
+# Defaults env_keep += "PKG_CACHEDIR PKG_DBDIR FTP_PASSIVE_MODE"
|
|
+##
|
|
+## Additionally uncomment if needed to preserve environmental variables
|
|
+## related to portupgrade
|
|
+# Defaults env_keep += "PORTSDIR PORTS_INDEX PORTS_DBDIR PACKAGES PKGTOOLS_CONF"
|
|
+##
|
|
## 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)
|