为普通用户添加sudo权限

1、切换root用户,打开sudoers文件

su root

vim /etc/sudoers

2、在“root ALL+(ALL) ALL”添加“用户名 ALL=(ALL) ALL”,保存


你可能感兴趣的:(为普通用户添加sudo权限)