Debian Codegraph @

tests/log/faillog/09_faillog-u_range/config/etc/pam.d/login

raw
1 #
2 # The PAM configuration file for the Shadow `login' service
3 #
4
5 # Enforce a minimal delay in case of failure (in microseconds).
6 # (Replaces the `FAIL_DELAY' setting from login.defs)
7 # Note that other modules may require another minimal delay. (for example,
8 # to disable any delay, you should add the nodelay option to pam_unix)
9 auth optional pam_faildelay.so delay=3000000
10
11 # Outputs an issue file prior to each login prompt (Replaces the
12 # ISSUE_FILE option from login.defs). Uncomment for use
13 # auth required pam_issue.so issue=/etc/issue
14
15 # Disallows root logins except on tty's listed in /etc/securetty
16 # (Replaces the `CONSOLE' setting from login.defs)
17 #
18 # With the default control of this module:
19 # [success=ok new_authtok_reqd=ok ignore=ignore user_unknown=bad default=die]
20 # root will not be prompted for a password on insecure lines.
21 # if an invalid username is entered, a password is prompted (but login
22 # will eventually be rejected)
23 #
24 # You can change it to a "requisite" module if you think root may mis-type
25 # her login and should not be prompted for a password in that case. But
26 # this will leave the system as vulnerable to user enumeration attacks.
27 #
28 # You can change it to a "required" module if you think it permits to
29 # guess valid user names of your system (invalid user names are considered
30 # as possibly being root on insecure lines), but root passwords may be
31 # communicated over insecure lines.
32 auth [success=ok new_authtok_reqd=ok ignore=ignore user_unknown=bad default=die] pam_securetty.so
33
34 # Disallows other than root logins when /etc/nologin exists
35 # (Replaces the `NOLOGINS_FILE' option from login.defs)
36 auth requisite pam_nologin.so
37
38 # Added to support faillog
39 auth required pam_tally.so per_user
40
41
42 # SELinux needs to be the first session rule. This ensures that any
43 # lingering context has been cleared. Without out this it is possible
44 # that a module could execute code in the wrong domain.
45 # When the module is present, "required" would be sufficient (When SELinux
46 # is disabled, this returns success.)
47 session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so close
48
49 # This module parses environment configuration file(s)
50 # and also allows you to use an extended config
51 # file /etc/security/pam_env.conf.
52 #
53 # parsing /etc/environment needs "readenv=1"
54 session required pam_env.so readenv=1
55 # locale variables are also kept into /etc/default/locale in etch
56 # reading this file *in addition to /etc/environment* does not hurt
57 session required pam_env.so readenv=1 envfile=/etc/default/locale
58
59 # Standard Un*x authentication.
60 @include common-auth
61
62 # This allows certain extra groups to be granted to a user
63 # based on things like time of day, tty, service, and user.
64 # Please edit /etc/security/group.conf to fit your needs
65 # (Replaces the `CONSOLE_GROUPS' option in login.defs)
66 auth optional pam_group.so
67
68 # Uncomment and edit /etc/security/time.conf if you need to set
69 # time constraints on logins.
70 # (Replaces the `PORTTIME_CHECKS_ENAB' option from login.defs
71 # as well as /etc/porttime)
72 # account requisite pam_time.so
73
74 # Uncomment and edit /etc/security/access.conf if you need to
75 # set access limits.
76 # (Replaces /etc/login.access file)
77 # account required pam_access.so
78
79 # Sets up user limits according to /etc/security/limits.conf
80 # (Replaces the use of /etc/limits in old login)
81 session required pam_limits.so
82
83 # Prints the last login info upon successful login
84 # (Replaces the `LASTLOG_ENAB' option from login.defs)
85 session optional pam_lastlog.so
86
87 # Prints the motd upon successful login
88 # (Replaces the `MOTD_FILE' option in login.defs)
89 session optional pam_motd.so
90
91 # Prints the status of the user's mailbox upon successful login
92 # (Replaces the `MAIL_CHECK_ENAB' option from login.defs).
93 #
94 # This also defines the MAIL environment variable
95 # However, userdel also needs MAIL_DIR and MAIL_FILE variables
96 # in /etc/login.defs to make sure that removing a user
97 # also removes the user's mail spool file.
98 # See comments in /etc/login.defs
99 session optional pam_mail.so standard
100
101 # Standard Un*x account and session
102 @include common-account
103 @include common-session
104 @include common-password
105
106 # SELinux needs to intervene at login time to ensure that the process
107 # starts in the proper default security context. Only sessions which are
108 # intended to run in the user's context should be run after this.
109 session [success=ok ignore=ignore module_unknown=ignore default=bad] pam_selinux.so open
110 # When the module is present, "required" would be sufficient (When SELinux
111 # is disabled, this returns success.)