将用户&用户组加入到sudoers

来源:互联网 发布:淘宝免单怎么设置 编辑:程序博客网 时间:2024/06/05 07:22

普通用户,执行不了管理员的权限。将普通用户加入到sudoer,即可使用sudo 命令,需要以root 进行以下配置:vi /etc/sudoers1. 添加用户## Allow root to run any commands anywhere root ALL=(ALL)ALL添加一行cao ALL=(ALL) ALL2.添加群组## Allows people in group wheel to run all commands# %wheel ALL=(ALL)ALL%developer ALL=(ALL)ALL



0 0