LoginSignup
13
12

More than 5 years have passed since last update.

特定ユーザをwheelにする設定

Last updated at Posted at 2014-12-12

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 (対象ユーザ)
13
12
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
12