Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 06 Aug 2017 02:08:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 221264] security/sudo: add passprompt example to ask for "root's password:" when using targetpw
Message-ID:  <bug-221264-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D221264

            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@FreeBSD.org
          Reporter: bruce@cran.org.uk
             Flags: maintainer-feedback?(garga@FreeBSD.org)
          Assignee: garga@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 promp=
t 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=3D"%U's password:"

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-221264-13>