ユーザー作成コマンド |
[root@localhost ~]# useradd mokyu #ユーザー作成コマンド |
[root@localhost ~]# passwd mokyu #パスワード変更コマンド |
ユーザー mokyu のパスワードを変更。 |
新しいパスワード: |
新しいパスワードを再入力してください: |
passwd: すべての認証トークンが正しく更新できました。 |
rootに変更できるユーザーの限定をする設定です。 |
[root@localhost ~]# usermod -G wheel mokyu |
[root@localhost ~]# vi /etc/pam.d/su |
#%PAM-1.0 |
auth sufficient pam_rootok.so |
# Uncomment the following line to implicitly trust users in the "wheel" group. |
#auth sufficient pam_wheel.so trust use_uid |
# Uncomment the following line to require a user to be in the "wheel" group. |
#下記の一行をコメントアウトします |
auth required pam_wheel.so use_uid #ここが有効になることによりrootユーザーを限定できます |
auth substack system-auth |
auth include postlogin |
account sufficient pam_succeed_if.so uid = 0 use_uid quiet |
account include system-auth |
password include system-auth |
session include system-auth |
session include postlogin |
session optional pam_xauth.so |
テーマ:UNIX/Linux - ジャンル:コンピュータ
★CentOS7 まとめ
★Ubuntu14 まとめ
★Ubuntu12用無線アダプタ紹介
★Ubuntu12 まとめ
★Server 2008R2 まとめ
★SCCM2012R2 まとめ
★Windows10 アップグレード
★Windows7 まとめ
★Windows7 SSD まとめ
★Windows8 まとめ
★EaseUS Todo Backup Server
★Linux Destbision まとめ
★Linuxコマンド関連Index
★Zorin8.1まとめ
★Fedora17まとめ
★Fedora15まとめ
☆VB Script まとめ
★USB3.0で快適バックアップ
★リンク集・メール
・はじめての自宅サーバ構築 - Fedora/CentOS -
SCCM Backup 遠隔操作 VirtualBox FeliCaポート/パソリ ESXi
<%plugin_third_description>
<%plugin_third_content><%plugin_third_description2>