首页 > 其他 > 详细

add sudoers

时间:2020-03-06 15:49:21      阅读:57      评论:0      收藏:0      [点我收藏+]

sed -i ‘/username/d‘ /etc/sudoers
sed -i ‘$d‘ /etc/sudoers
sed -i "$ a lt32806 ALL=(ALL) ALL" /etc/sudoers

 


chmod u+w /etc/sudoers
sed -i ‘s/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/‘ /etc/sudoers
chmod u-w /etc/sudoers
cat /etc/sudoers
gpasswd -a username wheel                                 or          usermod -aG wheel username

gpasswd wheel -d username


cat /etc/pam.d/su
grep wheel /etc/group

cat /etc/sudoers
gpasswd wheel -d username

add sudoers

原文:https://www.cnblogs.com/tonggc1668/p/12426366.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!