标签:name grep username user group mod pass sudoers pam
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
标签:name grep username user group mod pass sudoers pam
原文地址:https://www.cnblogs.com/tonggc1668/p/12426366.html