2008/12/8 Todd C. Miller <[EMAIL PROTECTED]>:
> Sounds like you have a line like this in sudoers:
>
> # Same thing without a password
> %wheel ALL=(ALL) NOPASSWD: SETENV: ALL
>
> which would explain why you don't get prompted for a password.
> But since you didn't include the output of "sudo -l" I
> can't tell for sure.
>
> - todd
>
Here you go:
$ sudo -l
Matching Defaults entries for ak on this host:
env_keep+="DESTDIR FETCH_CMD FLAVOR FTPMODE GROUP MAKE MULTI_PACKAGES",
env_keep+="OKAY_FILES OWNER PKG_DBDIR PKG_DESTDIR PKG_CACHE PKG_PATH",
env_keep+="PKG_TMPDIR PORTSDIR RELEASEDIR SUBPACKAGE WRKOBJDIR",
env_keep+="SSH_AUTH_SOCK EDITOR VISUAL SHARED_ONLY", passwd_timeout=0,
!insults
User ak may run the following commands on this host:
(ALL) SETENV: ALL
(ALL) NOPASSWD: /usr/local/libexec/xfsm-shutdown-helper
Andreas
--
Andreas Kahari
Somewhere in the general Cambridge area, UK