1、进入root模式,su,再输入正确密码 staryu@debian:~$ su root 2、修改/etc/sudoers文件权限,并打开文件 root@debian:/home/staryu# ls -l /etc/sudoersroot@debian:/home/staryu# chmod u+w /etc/sudoersroot@debian:/home/staryu# vi /etc/sudoers 3、找到root ALL=(ALL:ALL) ALL这行,在下方添加自己...