1. vi /etc/pam.d/su
2. Remove the comment from the following line
auth sufficient pam_wheel.so trust use_uid
3. Execute the following command
gpasswd -a usename wheel
Password-free switching from ordinary users to root users in Linux
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325444356&siteId=291194637
Recommended
Ranking