Linux sudoers

普通用户执行 sudo 以root用户身份来执行命令。

将普通用户加入sudoers组

在 root ALL=(ALL) ALL下添加
username  ALL=(ALL) ALL

 

sudo 不想输入密码    %wheel ALL=(ALL)       NOPASSWD: ALL   注释这个。

gpasswd -a username   wheel   执行这个加入wheel组。

posted on 2017-10-20 14:39  思此狂  阅读(198)  评论(0编辑  收藏  举报

导航