使用linux 特殊的用户组wheel


    # useradd -g wheel alice


    # vim /etc/pam.d/su

          #auth   required   pam_wheel.so use_uid  找到此行,去掉行首的“#”


    # echo “SU_WHEEL_ONLY yes” >> /etc/login.defs



-