|
1
2
3
4
5
6
7 |
suchmod a+w /etc/sudoersvim /etc/sudoers[找到root ALL=(ALL) ALL这行]复制出新的一行,并且将root改为daniel(当前用户名)chmod 0440 /etc/sudoersexit |
centos为用户添加sudo功能,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/long123king/p/3760601.html