找到su文件
vim /etc/pam.d/su
將 auth這一列的注釋號(hào) 去除
# Uncomment the following line to implicitly trust users in the "wheel" group.
auth sufficient pam_wheel.so trust use_uid
然后將登陸用戶加入 wheel組
usermod -G wheel {xxx}
找到su文件
vim /etc/pam.d/su
將 auth這一列的注釋號(hào) 去除
# Uncomment the following line to implicitly trust users in the "wheel" group.
auth sufficient pam_wheel.so trust use_uid
然后將登陸用戶加入 wheel組
usermod -G wheel {xxx}