使ubuntu10.10中sudo不用输入密码

来源:互联网 发布:东方网络2017分红 编辑:程序博客网 时间:2024/05/22 17:17
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#

Defaults    env_reset

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL

# Allow members of group sudo to execute any command
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
eric ALL=NOPASSWD: ALL    #添加这一行,意思是说,叫eric的这个用户,在做任何操作的时候,都不用输入密码。
原创粉丝点击