6.4. pam_deny-锁定 PAM 模块
pam_deny.so
6.4.1. DESCRIPTION
该模块可用于拒绝访问。它始终通过 PAM 框架指示应用程序失败。它可能适合用于默认(* OTHER *)条目。
6.4.2. OPTIONS
该模块无法识别任何选项。
6.4.3. 提供的模块类型
提供了所有模块类型(account
,auth
,password
和session
)。
6.4.4. 返回值
-
PAM_AUTH_ERR
- 这是由帐户和身份验证服务返回的。
-
PAM_CRED_ERR
- 这是由 setcred 函数返回的。
-
PAM_AUTHTOK_ERR
- 这是由密码服务返回的。
-
PAM_SESSION_ERR
- 这是由会话服务返回的。
6.4.5. EXAMPLES
#%PAM-1.0
#
# If we don't have config entries for a service, the
# OTHER entries are used. To be secure, warn and deny
# access to everything.
other auth required pam_warn.so
other auth required pam_deny.so
other account required pam_warn.so
other account required pam_deny.so
other password required pam_warn.so
other password required pam_deny.so
other session required pam_warn.so
other session required pam_deny.so
6.4.6. AUTHOR
pam_deny 由 Andrew G. Morgan<[email protected]>撰写