[Bug 221264] security/sudo: add passprompt example to ask for "root's password:" when using targetpw

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Aug 6 02:08:36 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221264

            Bug ID: 221264
           Summary: security/sudo: add passprompt example to ask for
                    "root's password:" when using targetpw
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: garga at FreeBSD.org
          Reporter: bruce at cran.org.uk
             Flags: maintainer-feedback?(garga at FreeBSD.org)
          Assignee: garga at FreeBSD.org

There's an example in the default sudoers file for having sudo ask for the
target user's password instead of the current user's:

Defaults targetpw  # Ask for the password of the target user

I like the way OpenSUSE handles this, in that it changes the password prompt to
make it clear that you should enter root's password and not your own.

I think it would be nice if the example had the following additional line:

Defaults passprompt="%U's password:"

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list