普通用户添加sudo权限

1、切换超级用户
su - root
2、编辑配置文件
vim /etc/sudoers

## Allow root to run any commands anywhere 
root    ALL=(ALL)       ALL
username     ALL=(ALL)       ALL
posted @ 2019-04-03 00:21  故人叹  阅读(85)  评论(0编辑  收藏  举报