su
sudoedit /etc/sudoers
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL #去掉该行前面的注释
usermod -a -G wheel login-name #将用户加入wheel组
本文介绍如何通过编辑sudoers文件为特定用户组(如wheel)授予sudo权限,并演示如何将指定用户添加到wheel组以实现对所有命令的执行权限。
su
sudoedit /etc/sudoers
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL #去掉该行前面的注释
usermod -a -G wheel login-name #将用户加入wheel组
6337

被折叠的 条评论
为什么被折叠?