2)编辑sudoers文件 vim /etc/sudoers注:在 root ALL=(ALL) ALL 这行下边添上自己账户就可以了()
centos7将用户添加到sudo组
原文:http://blog.51cto.com/13043516/2064530