首页 > 其他 > 详细

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

时间:2020-05-11 14:20:48      阅读:174      评论:0      收藏:0      [点我收藏+]

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:

 

 

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!