修改sudoers文件为用户增加sudo权限

Debian 10 x64

在Konsole中输入命令:sudo gedit /etc/sudoers

或 找到 /etc/sudoers 文件进行更改即可


找到 root ALL=(ALL:ALL) ALL 之后在下面添加一行即可 xxx 表示用户名

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL
xxx   ALL=(ALL:ALL) ALL

# Allow members of group sudo to execute any command
%sudo    ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

 

 

posted @ 2020-05-11 14:09  YJCCN  阅读(616)  评论(0编辑  收藏  举报