内容へ移動
fl8 Wiki
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
現在位置:
Dokuwiki.fl8.jp
»
01_linux
»
01_net
»
wheelグループ以外suできないようにする
トレース:
01_linux:01_net:wheel_group
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== wheelグループ以外suできないようにする ====== FreeBSDだと標準ですが、Linuxの場合どのユーザでもsuできるようになっているので、\\ 下記を編集しておく。 ====== /etc/pam.d/suのコメントを一行外すだけ ====== <code console> # 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できない。 </code> ====== CentOS5.2の/etc/pam.d/su ====== <code console> # 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 </code>
01_linux/01_net/wheel_group.txt
· 最終更新: 2012/10/31 19:53 by
matsui
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ