添加 sudoer centos

cd /etc

su root

chmod +w ./sudoer

vim ./sudoer

locate to root (all)...

use yy p

change you want to privliage username

then wq

chmod -w ./sudoer

原文地址:https://www.cnblogs.com/lexus/p/2364323.html