1.  root用户编辑文件/etc/sudoers

vi /etc/sudoers

 

2.  按yy复制行root   ALL=(ALL)      ALL

     按p粘贴,修改 “root” 为添加的用户名

 

相关文章: