1 # Configuration file for Pluggable Authentication Modules (PAM).
3 # This file controls the authentication methods that login and other
4 # utilities use. See pam(8) for a description of its format.
6 # $FreeBSD: src/etc/pam.conf,v 1.6.2.18 2003/02/15 17:20:27 des Exp $
7 # $DragonFly: src/etc/Attic/pam.conf,v 1.3 2003/08/05 07:45:39 asmodai Exp $
9 # service-name module-type control-flag module-path arguments
12 # auth: prompt for a password to authenticate that the user is
13 # who they say they are, and set any credentials.
14 # account: non-authentication based authorization, based on time,
16 # session: housekeeping before and/or after login.
17 # password: update authentication tokens.
19 # control-flag: How libpam handles success or failure of the module.
20 # required: success is required, and on failure all remaining
22 # requisite: success is required, and on failure no remaining
24 # sufficient: success is sufficient, and if no previous required
25 # module failed, no remaining modules are run.
26 # optional: ignored unless the other modules return PAM_IGNORE.
29 # Passed to the module; module-specific plus some generic ones:
30 # debug: syslog debug info.
31 # no_warn: return no warning messages to the application.
32 # use_first_pass: try authentication using password from the
33 # preceding auth module.
34 # try_first_pass: first try authentication using password from
35 # the preceding auth module, and if that fails
36 # prompt for a new password.
37 # use_mapped_pass: convert cleartext password to a crypto key.
38 # expose_account: allow printing more info about the user when
41 # Each final entry must say "required" -- otherwise, things don't
42 # work quite right. If you delete a final entry, be sure to change
43 # "sufficient" to "required" in the entry before it.
45 # If the user can authenticate with S/Key, that's sufficient; allow clear
46 # password. Try kerberos, then try plain unix password.
47 login auth sufficient pam_skey.so
48 login auth sufficient pam_opie.so no_fake_prompts
49 #login auth requisite pam_opieaccess.so
50 login auth requisite pam_cleartext_pass_ok.so
51 #login auth sufficient pam_krb5.so try_first_pass
52 login auth required pam_unix.so try_first_pass
53 login account required pam_unix.so
54 login password required pam_permit.so
55 login session required pam_permit.so
57 # Same requirement for ftpd as login
58 ftpd auth sufficient pam_skey.so
59 ftpd auth sufficient pam_opie.so no_fake_prompts
60 #ftpd auth requisite pam_opieaccess.so
61 ftpd auth requisite pam_cleartext_pass_ok.so
62 #ftpd auth sufficient pam_krb5.so try_first_pass
63 ftpd auth required pam_unix.so try_first_pass
65 # OpenSSH with PAM support requires similar modules. The session one is
66 # a bit strange, though...
67 sshd auth sufficient pam_skey.so
68 sshd auth sufficient pam_opie.so no_fake_prompts
69 #sshd auth requisite pam_opieaccess.so
70 #sshd auth sufficient pam_krb5.so try_first_pass
71 sshd auth required pam_unix.so try_first_pass
72 sshd account required pam_unix.so
73 sshd password required pam_permit.so
74 sshd session required pam_permit.so
76 # "telnetd" is for SRA authenticated telnet only. Non-SRA uses 'login'
77 telnetd auth required pam_unix.so try_first_pass
80 xserver auth required pam_permit.so
82 # XDM is difficult; it fails or moans unless there are modules for each
83 # of the four management groups; auth, account, session and password.
84 xdm auth required pam_unix.so
85 #xdm auth sufficient pam_krb5.so try_first_pass
86 xdm account required pam_unix.so try_first_pass
87 xdm session required pam_deny.so
88 xdm password required pam_deny.so
90 # GDM (GNOME Display Manager)
91 gdm auth required pam_unix.so
92 #gdm auth sufficient pam_krb5.so try_first_pass
93 gdm account required pam_unix.so try_first_pass
94 gdm session required pam_permit.so
95 gdm password required pam_deny.so
98 imap auth required pam_unix.so try_first_pass
99 pop3 auth required pam_unix.so try_first_pass
101 # If we don't match anything else, default to using getpwnam().
102 other auth sufficient pam_skey.so
103 other auth required pam_unix.so try_first_pass
104 other account required pam_unix.so try_first_pass