su
chmod a+w /etc/sudoers
vim /etc/sudoers
[找到root ALL=(ALL) ALL这行]
复制出新的一行,并且将root改为daniel(当前用户名)
chmod 0440 /etc/sudoers
exit
su
chmod a+w /etc/sudoers
vim /etc/sudoers
[找到root ALL=(ALL) ALL这行]
复制出新的一行,并且将root改为daniel(当前用户名)
chmod 0440 /etc/sudoers
exit
转载于:https://www.cnblogs.com/long123king/p/3760601.html