三歩あるけば物も忘れる

私メタボックル!お腹のお肉の妖精さ!

ユーザ用ツール

サイト用ツール


サイドバー

  
人気ページTOP10

181

インフラ構築:RHEL8:72.アクセス管理-pam.d-login

インフラ構築/RHEL8/72.アクセス管理-pam.d-login

/etc/pam.d/login設定

#変更
vi /etc/pam.d/login

/etc/pam.d/login設定詳細

ハイライト行を追記する。
/etc/security/limits.confの設定を反映する。
pam_limits.soは/etc/security/limits.confに書かれた制限を適用します。インフラ構築/RHEL8/11.ユーザリミット

#%PAM-1.0
auth       substack     system-auth
auth       include      postlogin
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      system-auth
session    include      postlogin
-session   optional     pam_ck_connector.so
session    required     pam_limits.so


https://int128.hatenablog.com/entry/20090726/1248622071

初期値

#%PAM-1.0
auth       substack     system-auth
auth       include      postlogin
account    required     pam_nologin.so
account    include      system-auth
password   include      system-auth
# pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
session    optional     pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open
session    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      system-auth
session    include      postlogin
-session   optional     pam_ck_connector.so

インフラ構築/RHEL8/72.アクセス管理-pam.d-login.txt · 最終更新: 2021/01/06 by admin