1998-11-20 23:20:01 +00:00
|
|
|
# Configuration file for Pluggable Authentication Modules (PAM).
|
|
|
|
#
|
|
|
|
# This file controls the authentication methods that login and other
|
|
|
|
# utilities use. See pam(8) for a description of its format.
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
2001-03-27 19:40:51 +00:00
|
|
|
#
|
|
|
|
# service-name module-type control-flag module-path arguments
|
|
|
|
#
|
|
|
|
# module-type:
|
|
|
|
# auth: prompt for a password to authenticate that the user is
|
|
|
|
# who they say they are, and set any credentials.
|
|
|
|
# account: non-authentication based authorization, based on time,
|
|
|
|
# resources, etc.
|
|
|
|
# session: housekeeping before and/or after login.
|
|
|
|
# password: update authentication tokens.
|
|
|
|
#
|
|
|
|
# control-flag: How libpam handles success or failure of the module.
|
|
|
|
# required: success is required, and on failure all remaining
|
|
|
|
# modules are run.
|
|
|
|
# requisite: success is required, and on failure no remaining
|
|
|
|
# modules are run.
|
|
|
|
# sufficient: success is sufficient, and if no previous required
|
|
|
|
# module failed, no remaining modules are run.
|
|
|
|
# optional: ignored unless the other modules return PAM_IGNORE.
|
|
|
|
#
|
|
|
|
# arguments:
|
|
|
|
# Passed to the module; module-specific plus some generic ones:
|
|
|
|
# debug: syslog debug info.
|
|
|
|
# no_warn: return no warning messages to the application.
|
2001-08-15 20:12:27 +00:00
|
|
|
# Remove this to feed back to the user the
|
|
|
|
# reason(s) they are being rejected.
|
2001-03-27 19:40:51 +00:00
|
|
|
# use_first_pass: try authentication using password from the
|
|
|
|
# preceding auth module.
|
|
|
|
# try_first_pass: first try authentication using password from
|
|
|
|
# the preceding auth module, and if that fails
|
|
|
|
# prompt for a new password.
|
|
|
|
# use_mapped_pass: convert cleartext password to a crypto key.
|
|
|
|
# expose_account: allow printing more info about the user when
|
|
|
|
# prompting.
|
|
|
|
#
|
|
|
|
# Each final entry must say "required" -- otherwise, things don't
|
|
|
|
# work quite right. If you delete a final entry, be sure to change
|
|
|
|
# "sufficient" to "required" in the entry before it.
|
1998-11-20 23:20:01 +00:00
|
|
|
|
2001-08-15 20:12:27 +00:00
|
|
|
login auth required pam_nologin.so no_warn
|
2001-08-26 18:15:32 +00:00
|
|
|
#login auth sufficient pam_opie.so no_warn
|
2001-08-15 20:12:27 +00:00
|
|
|
#login auth sufficient pam_kerberosIV.so no_warn try_first_pass
|
|
|
|
#login auth sufficient pam_krb5.so no_warn try_first_pass
|
|
|
|
#login auth required pam_ssh.so no_warn try_first_pass
|
|
|
|
login auth required pam_unix.so no_warn try_first_pass
|
2001-05-26 09:56:17 +00:00
|
|
|
#login account required pam_kerberosIV.so
|
2001-03-27 19:40:51 +00:00
|
|
|
#login account required pam_krb5.so
|
2001-08-26 18:15:32 +00:00
|
|
|
login account required pam_unix.so
|
2001-05-26 09:56:17 +00:00
|
|
|
#login session required pam_kerberosIV.so
|
2001-03-27 19:40:51 +00:00
|
|
|
#login session required pam_krb5.so
|
2001-08-26 18:15:32 +00:00
|
|
|
#login session required pam_ssh.so
|
|
|
|
login session required pam_unix.so
|
|
|
|
#login password sufficient pam_opie.so no_warn
|
|
|
|
#login password sufficient pam_kerberosIV.so no_warn try_first_pass
|
|
|
|
#login password sufficient pam_krb5.so no_warn try_first_pass
|
|
|
|
login password required pam_unix.so no_warn try_first_pass
|
2001-03-27 19:40:51 +00:00
|
|
|
|
2001-08-15 20:12:27 +00:00
|
|
|
rsh auth required pam_nologin.so no_warn
|
|
|
|
rsh auth required pam_permit.so no_warn
|
2001-03-27 19:40:51 +00:00
|
|
|
rsh account required pam_unix.so
|
|
|
|
rsh session required pam_permit.so
|
1999-12-21 08:36:10 +00:00
|
|
|
|
2001-05-26 09:56:17 +00:00
|
|
|
# "Standard" su(1) policy.
|
2001-08-15 20:12:27 +00:00
|
|
|
su auth sufficient pam_rootok.so no_warn
|
2001-08-26 18:15:32 +00:00
|
|
|
su auth requisite pam_wheel.so no_warn auth_as_self noroot_ok
|
2001-08-15 20:12:27 +00:00
|
|
|
#su auth sufficient pam_kerberosIV.so no_warn
|
|
|
|
#su auth sufficient pam_krb5.so no_warn try_first_pass auth_as_self
|
|
|
|
#su auth required pam_opie.so no_warn
|
|
|
|
#su auth required pam_ssh.so no_warn try_first_pass
|
|
|
|
su auth required pam_unix.so no_warn try_first_pass nullok
|
2001-06-04 19:52:36 +00:00
|
|
|
#su account required pam_kerberosIV.so
|
2001-03-27 19:40:51 +00:00
|
|
|
#su account required pam_krb5.so
|
|
|
|
su account required pam_unix.so
|
2001-05-26 09:56:17 +00:00
|
|
|
#su session required pam_kerberosIV.so
|
2001-03-27 19:40:51 +00:00
|
|
|
#su session required pam_krb5.so
|
2001-08-26 18:15:32 +00:00
|
|
|
#su session required pam_ssh.so
|
|
|
|
su session required pam_unix.so
|
2001-03-27 19:40:51 +00:00
|
|
|
su password required pam_permit.so
|
|
|
|
|
2001-05-26 09:56:17 +00:00
|
|
|
# If you want a "WHEELSU"-type su(1), then comment out the
|
|
|
|
# above, and uncomment the below "su" entries.
|
2001-08-15 20:12:27 +00:00
|
|
|
#su auth sufficient pam_rootok.so no_warn
|
|
|
|
##su auth sufficient pam_kerberosIV.so no_warn
|
|
|
|
##su auth sufficient pam_krb5.so no_warn
|
|
|
|
#su auth required pam_opie.so no_warn auth_as_self
|
|
|
|
#su auth required pam_unix.so no_warn try_first_pass auth_as_self
|
2001-05-26 09:56:17 +00:00
|
|
|
##su account required pam_kerberosIV.so
|
|
|
|
##su account required pam_krb5.so
|
|
|
|
#su account required pam_unix.so
|
|
|
|
##su session required pam_kerberosIV.so
|
|
|
|
##su session required pam_krb5.so
|
2001-08-26 18:15:32 +00:00
|
|
|
##su session required pam_ssh.so
|
|
|
|
#su session required pam_unix.so
|
2001-05-26 09:56:17 +00:00
|
|
|
#su password required pam_permit.so
|
|
|
|
|
2001-03-27 19:40:51 +00:00
|
|
|
# Native ftpd.
|
2001-08-15 20:12:27 +00:00
|
|
|
ftpd auth required pam_nologin.so no_warn
|
|
|
|
#ftpd auth sufficient pam_kerberosIV.so no_warn
|
|
|
|
#ftpd auth sufficient pam_krb5.so no_warn
|
|
|
|
#ftpd auth required pam_opie.so no_warn
|
|
|
|
#ftpd auth required pam_ssh.so no_warn try_first_pass
|
|
|
|
ftpd auth required pam_unix.so no_warn try_first_pass
|
2001-05-26 09:56:17 +00:00
|
|
|
#ftpd account required pam_kerberosIV.so
|
2001-03-27 19:40:51 +00:00
|
|
|
#ftpd account required pam_krb5.so
|
|
|
|
ftpd account required pam_unix.so
|
2001-05-26 09:56:17 +00:00
|
|
|
#ftpd session required pam_kerberosIV.so
|
2001-03-27 19:40:51 +00:00
|
|
|
#ftpd session required pam_krb5.so
|
2001-08-26 18:15:32 +00:00
|
|
|
#ftpd session required pam_ssh.so
|
|
|
|
ftpd session required pam_unix.so
|
2001-03-27 19:40:51 +00:00
|
|
|
|
|
|
|
# PROftpd.
|
2001-08-15 20:12:27 +00:00
|
|
|
ftp auth required pam_nologin.so no_warn
|
|
|
|
#ftp auth sufficient pam_kerberosIV.so no_warn
|
|
|
|
#ftp auth sufficient pam_krb5.so no_warn
|
|
|
|
#ftp auth required pam_opie.so no_warn
|
|
|
|
#ftp auth required pam_ssh.so no_warn try_first_pass
|
|
|
|
ftp auth required pam_unix.so no_warn try_first_pass
|
2001-05-26 09:56:17 +00:00
|
|
|
#ftp account required pam_kerberosIV.so
|
2001-03-27 19:40:51 +00:00
|
|
|
#ftp account required pam_krb5.so
|
2001-08-26 18:15:32 +00:00
|
|
|
ftp account required pam_unix.so
|
2001-05-26 09:56:17 +00:00
|
|
|
#ftp session required pam_kerberosIV.so
|
2001-03-27 19:40:51 +00:00
|
|
|
#ftp session required pam_krb5.so
|
2001-08-26 18:15:32 +00:00
|
|
|
#ftp session required pam_ssh.so
|
|
|
|
ftp session required pam_unix.so
|
2000-02-12 20:22:20 +00:00
|
|
|
|
2001-04-06 05:52:53 +00:00
|
|
|
# OpenSSH
|
2001-08-15 20:12:27 +00:00
|
|
|
sshd auth required pam_nologin.so no_warn
|
|
|
|
sshd auth required pam_unix.so no_warn try_first_pass
|
2001-03-27 19:40:51 +00:00
|
|
|
sshd account required pam_unix.so
|
2000-12-05 03:01:33 +00:00
|
|
|
sshd session required pam_permit.so
|
2001-08-26 18:15:32 +00:00
|
|
|
sshd password required pam_permit.so
|
2001-04-06 05:52:53 +00:00
|
|
|
# "csshd" is for challenge-based authentication with sshd (TIS auth, etc.)
|
2001-08-15 20:12:27 +00:00
|
|
|
csshd auth required pam_opie.so no_warn
|
2000-12-05 03:01:33 +00:00
|
|
|
|
2001-05-07 20:38:39 +00:00
|
|
|
# SRA telnet. Non-SRA telnet uses 'login'.
|
2001-08-15 20:12:27 +00:00
|
|
|
telnetd auth required pam_nologin.so no_warn
|
|
|
|
telnetd auth required pam_unix.so no_warn try_first_pass
|
2001-05-07 20:38:39 +00:00
|
|
|
telnetd account required pam_unix.so
|
|
|
|
|
2000-01-04 06:08:58 +00:00
|
|
|
# Don't break startx
|
2001-08-15 20:12:27 +00:00
|
|
|
xserver auth required pam_permit.so no_warn
|
2000-01-04 06:08:58 +00:00
|
|
|
|
2001-08-26 18:15:32 +00:00
|
|
|
# XDM
|
2001-08-15 20:12:27 +00:00
|
|
|
xdm auth required pam_nologin.so no_warn
|
|
|
|
#xdm auth sufficient pam_kerberosIV.so no_warn try_first_pass
|
|
|
|
#xdm auth sufficient pam_krb5.so no_warn try_first_pass
|
2001-08-26 18:15:32 +00:00
|
|
|
#xdm auth sufficient pam_ssh.so no_warn try_first_pass
|
2001-08-15 20:12:27 +00:00
|
|
|
xdm auth required pam_unix.so no_warn try_first_pass
|
2001-08-26 18:15:32 +00:00
|
|
|
#xdm account required pam_kerberosIV.so
|
|
|
|
#xdm account required pam_krb5.so
|
2001-03-27 19:40:51 +00:00
|
|
|
xdm account required pam_unix.so
|
2001-08-26 18:15:32 +00:00
|
|
|
#xdm session required pam_kerberosIV.so
|
|
|
|
#xdm session required pam_krb5.so
|
|
|
|
#xdm session required pam_ssh.so
|
|
|
|
xdm session required pam_unix.so
|
2000-01-04 06:08:58 +00:00
|
|
|
xdm password required pam_deny.so
|
|
|
|
|
2000-01-10 14:08:30 +00:00
|
|
|
# Mail services
|
2001-08-15 20:12:27 +00:00
|
|
|
#imap auth required pam_nologin.so no_warn
|
|
|
|
#imap auth required pam_opie.so no_warn
|
|
|
|
#imap auth required pam_ssh.so no_warn try_first_pass
|
|
|
|
#imap auth required pam_unix.so no_warn try_first_pass
|
|
|
|
#pop3 auth required pam_nologin.so no_warn
|
|
|
|
#pop3 auth required pam_opie.so no_warn
|
|
|
|
#pop3 auth required pam_ssh.so no_warn try_first_pass
|
|
|
|
#pop3 auth required pam_unix.so no_warn try_first_pass
|
2000-01-10 14:08:30 +00:00
|
|
|
|
2001-08-15 20:12:27 +00:00
|
|
|
# If we don't match anything else, default to using OPIE or getpwnam().
|
|
|
|
other auth required pam_nologin.so no_warn
|
|
|
|
#other auth required pam_opie.so no_warn
|
|
|
|
other auth required pam_unix.so no_warn try_first_pass
|
2001-03-27 19:40:51 +00:00
|
|
|
other account required pam_unix.so
|
2001-08-26 18:15:32 +00:00
|
|
|
other session required pam_unix.so
|
|
|
|
other password required pam_deny.so
|