このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
Tag Cloud
このページへのアクセス
今日: 2 / 昨日: 0
総計: 481
- Dokuwiki.fl8.jp(807)
- DokuWiki(59)
- FreeBSD カーネル再構築(18)
- 01 ネットワーク設定nmcli(16)
最近の更新
このページへのアクセス
今日: 2 / 昨日: 0
総計: 481
FreeBSDだと標準ですが、Linuxの場合どのユーザでもsuできるようになっているので、
下記を編集しておく。
# Uncomment the following line to require a user to be in the "wheel" group. # auth required /lib/security/$ISA/pam_wheel.so use_uid ↓ # Uncomment the following line to require a user to be in the "wheel" group. auth required /lib/security/$ISA/pam_wheel.so use_uid これでwheelグループに所属していないユーザはsuできない。
# Uncomment the following line to implicitly trust users in the "wheel" group. #wheelグループに属していると、パスワード無しでsuできる #auth sufficient pam_wheel.so trust use_uid # Uncomment the following line to require a user to be in the "wheel" group. #wheelグループに属していると、パスワード有りでsuできる #auth required pam_wheel.so use_uid