centos为用户添加sudo功能

时间:2014-06-03 08:50:33   收藏:0   阅读:220
1
2
3
4
5
6
7
su
chmod a+w /etc/sudoers
vim /etc/sudoers
[找到root    ALL=(ALL)       ALL这行]
复制出新的一行,并且将root改为daniel(当前用户名)
chmod 0440 /etc/sudoers
exit

  

centos为用户添加sudo功能,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!