gentoo 添加sudo 用户

来源:互联网 发布:苹果数据线检测软件 编辑:程序博客网 时间:2024/05/01 19:40


如果不存在/etc/sudoers文件,则执行emerge sudo

#只需要把西面的username 换成真正的username即可

# /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
username     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