2 # /etc/login.defs - Configuration control definitions for pwdutils package.
4 # Comment lines (lines beginning with "#") and blank lines are ignored.
5 # Please read the manual page for more information (login.defs.5).
9 # Should login be allowed if we can't cd to the home directory?
15 # The default PATH settings (used by login):
17 ENV_PATH /usr/local/bin:/usr/bin:/bin
20 # The default PATH settings for root (used by login):
22 ENV_ROOTPATH /sbin:/bin:/usr/sbin:/usr/bin
25 # Delay in seconds before being allowed another attempt
26 # after a login failure
31 # Enable logging and display of /var/log/faillog login
37 # If defined and the file exist, login failures will be
38 # logged here in a utmp format.
39 # last, when invoked as lastb, will read /var/log/btmp, so...
41 FTMP_FILE /var/log/btmpx
44 # If defined, file which inhibits all the usual chatter
45 # during the login sequence. If a full pathname, then hushed
46 # mode will be enabled if the user's name or shell are found
47 # in the file. If not a full pathname, then hushed mode will
48 # be enabled if the file exists in the user's home directory.
50 #HUSHLOGIN_FILE .hushlogin
51 HUSHLOGIN_FILE /etc/hushlogins
54 # Enable logging and display of /var/log/lastlog login time info.
59 # Enable display of unknown usernames when login failures
65 # Max number of login retries if password is bad
70 # Max time in seconds for login
75 # If defined, ":" delimited list of "message of the day" files to
76 # be displayed upon login.
79 #MOTD_FILE /etc/motd:/usr/lib/news/news-motd
82 # If defined, file which maps tty line to TERM environment parameter.
83 # Each line of the file is in a format something like "vt100 tty01".
85 TTYTYPE_FILE /etc/ttytype
88 # Terminal permissions
90 # TTYGROUP Login tty will be assigned this group ownership.
91 # TTYPERM Login tty will be set to this permission.
93 # If you have a "write" program which is "setgid" to a special group
94 # which owns the terminals, define TTYGROUP to the group number and
95 # TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign
96 # TTYPERM to either 622 or 600.
102 # Require password before chfn/chsh can make any changes.
107 # Which fields may be changed by regular users using chfn - use
108 # any combination of letters "frwh" (full name, room number, work
109 # phone, home phone). If not defined, no changes are allowed.
110 # For backward compatibility, "yes" = "rwh" and "no" = "frwh".
115 # Password aging controls (used by useradd):
117 # PASS_MAX_DAYS Maximum number of days a password may be used.
118 # PASS_MIN_DAYS Minimum number of days allowed between password changes.
119 # PASS_WARN_AGE Number of days warning given before a password expires.
126 # Min/max values for automatic uid selection in useradd
128 # SYSTEM_UID_MIN to SYSTEM_UID_MAX inclusive is the range for
129 # UIDs for dynamically allocated administrative and system accounts.
130 # UID_MIN to UID_MAX inclusive is the range of UIDs of dynamically
131 # allocated user accounts.
139 # Min/max values for automatic gid selection in groupadd
141 # SYSTEM_GID_MIN to SYSTEM_GID_MAX inclusive is the range for
142 # GIDs for dynamically allocated administrative and system groups.
143 # GID_MIN to GID_MAX inclusive is the range of GIDs of dynamically
152 # User/group names must match the following regex expression.
153 # The default is [A-Za-z_][A-Za-z0-9_.-]*[A-Za-z0-9_.$-]\?,
154 # but be aware that the result could be depend on the locale settings.
156 #CHARACTER_CLASS [A-Za-z_][A-Za-z0-9_.-]*[A-Za-z0-9_.$-]\?
157 CHARACTER_CLASS [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_][ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxyz0123456789_.-]*[ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxyz01234567899_.$-]\?
160 # Umask which is used by useradd and newusers for creating
161 # new home directories.
166 # If defined, this command is run when adding a group.
167 # It should rebuild any NIS database etc. to add the
170 GROUPADD_CMD /etc/pwdutils/groupadd.local
173 # If defined, this command is run when adding a user.
174 # It should rebuild any NIS database etc. to add the
175 # new created account.
177 USERADD_CMD /etc/pwdutils/useradd.local
180 # If defined, this command is run before removing a user.
181 # It should remove any at/cron/print jobs etc. owned by
182 # the user to be removed.
184 USERDEL_PRECMD /etc/pwdutils/userdel-pre.local
187 # If defined, this command is run after removing a user.
188 # It should rebuild any NIS database etc. to remove the
191 USERDEL_POSTCMD /etc/pwdutils/userdel-post.local