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

时间:2020-05-11 14:20:48   收藏:0   阅读:174

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:

 

 

原文:https://www.cnblogs.com/acmexyz/p/12868828.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!