1、切换root用户,打开sudoers文件
su root
vim /etc/sudoers
2、在“root ALL+(ALL) ALL”添加“用户名 ALL=(ALL) ALL”,保存

1、切换root用户,打开sudoers文件
su root
vim /etc/sudoers
2、在“root ALL+(ALL) ALL”添加“用户名 ALL=(ALL) ALL”,保存
本文标题:为普通用户添加sudo权限
本文链接:https://www.haomeiwen.com/subject/optgjrtx.html
网友评论