linux普通用户权限设置为超级用户权限

添加文件可写权限

chmod 644 /etc/sudoers

编辑/etc/sudoers文件

vim /etc/sudoers

添加下面一行:

boye ALL=(ALL) NOPASSWD: ALL

原文地址:https://www.cnblogs.com/boye169/p/14071497.html