于 2012年01月04日 14:45, Bob Proulx 写道:
chengshid wrote:
"sudo" command passwd is not canceled since i modify the follows files.
/usr/share/polkit-1/actions/ and /etc/pam.d/
the /etc/sudoers file have modified with no required passwd.
help me! thanks.
I do not understand what you are asking. Are you saying that it is
not requiring a password now? The default password timeout is 15
minutes.
Use 'sudo -k' to revoke your permissions.
use 'sudo -l' to list information about what you are allowed. This
will display any NOPASSWD flags set in the file.
Bob
$sudo -l
env_reset,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin
(ALL : ALL) NOPASSWD: ALL
(ALL : ALL) ALL
This my content of sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults
secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
user ALL=(ALL:ALL)NOPASSWD: ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
Thanks!
--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f04377f.1060...@gmail.com