180style wiki
自宅サーバ/Fedora Core 5/02.suできるユーザの設定
をテンプレートにして作成
開始行:
*suできるユーザの設定 [#xdb0775b]
rootユーザはなんでも出来きるので、誤って重要なファイルを...
そのため、基本は一般ユーザでログインし、root権限が必要な...
**一般ユーザの作成 [#h3685985]
# useradd fcuser ← 一般ユーザfcuserを作成
# passwd fcuser ← fcuserにパスワードを設定
# groupadd fcusers ← 一般ユーザグループを作成
# useradd -g fcusers fcuser2 ← 一般ユーザfcuser2を作成
# passwd fcuser2 ← fcuser2にパスワードを設定
**suできるユーザの設定 [#oebe02bf]
# usermod -G wheel fcuser ← 管理者ユーザをwheelグルー...
# vi /etc/pam.d/su
/etc/pam.d/su
auth required pam_wheel.so use_uid ← コメン...
# echo "SU_WHEEL_ONLY yes" >> /etc/login.defs ← 最終行...
終了行:
*suできるユーザの設定 [#xdb0775b]
rootユーザはなんでも出来きるので、誤って重要なファイルを...
そのため、基本は一般ユーザでログインし、root権限が必要な...
**一般ユーザの作成 [#h3685985]
# useradd fcuser ← 一般ユーザfcuserを作成
# passwd fcuser ← fcuserにパスワードを設定
# groupadd fcusers ← 一般ユーザグループを作成
# useradd -g fcusers fcuser2 ← 一般ユーザfcuser2を作成
# passwd fcuser2 ← fcuser2にパスワードを設定
**suできるユーザの設定 [#oebe02bf]
# usermod -G wheel fcuser ← 管理者ユーザをwheelグルー...
# vi /etc/pam.d/su
/etc/pam.d/su
auth required pam_wheel.so use_uid ← コメン...
# echo "SU_WHEEL_ONLY yes" >> /etc/login.defs ← 最終行...
ページ名: