sudo設定を変更する
- root ユーザで実行する
visudo
このへんを編集する
## Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL
wheel のみ su できるようにする
- root ユーザで実行する
/etc/pam.d/su
# Uncomment the following line to require a user to be in the "wheel" group.
auth required pam_wheel.so use_uid
アカウントの設定を変更する
- root ユーザで実行する
gpasswd -a (対象ユーザ) wheel
usermod -g wheel (対象ユーザ)