2 # /etc/login.defs - Configuration control definitions for the login package.
6 # Three items must be defined: MAIL_DIR, ENV_SUPATH, and ENV_PATH.
7 # If unspecified, some arbitrary (and possibly incorrect) value will
8 # be assumed. All other items are optional - if not specified then
9 # the described action or option will be inhibited.
11 # Comment lines (lines beginning with "#") and blank lines are ignored.
13 # Modified for Linux. --marekm
16 # Delay in seconds before being allowed another attempt after a login failure
21 # Enable display of unknown usernames when login failures are recorded.
26 # Enable logging of successful logins
31 # Enable "syslog" logging of su activity - in addition to sulog file logging.
32 # SYSLOG_SG_ENAB does the same for newgrp and sg.
38 # If defined, either full pathname of a file containing device names or
39 # a ":" delimited list of device names. Root logins will be allowed only
42 CONSOLE /etc/securetty
43 #CONSOLE console:tty01:tty02:tty03:tty04
46 # If defined, all su activity is logged to this file.
48 #SULOG_FILE /var/log/sulog
51 # If defined, file which maps tty line to TERM environment parameter.
52 # Each line of the file is in a format something like "vt100 tty01".
54 #TTYTYPE_FILE /etc/ttytype
57 # If defined, the command name to display when running "su -". For
58 # example, if this is defined as "su" then a "ps" will display the
59 # command is "-su". If not defined, then "ps" would display the
60 # name of the shell actually being run, e.g. something like "-sh".
66 # Directory where mailboxes reside, _or_ name of file, relative to the
67 # home directory. If you _do_ define both, MAIL_DIR takes precedence.
73 # If defined, file which inhibits all the usual chatter during the login
74 # sequence. If a full pathname, then hushed mode will be enabled if the
75 # user's name or shell are found in the file. If not a full pathname, then
76 # hushed mode will be enabled if the file exists in the user's home directory.
78 HUSHLOGIN_FILE .hushlogin
79 #HUSHLOGIN_FILE /etc/hushlogins
82 # *REQUIRED* The default PATH settings, for superuser and normal users.
84 # (they are minimal, add the rest in the shell startup files)
85 ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin
86 ENV_PATH PATH=/bin:/usr/bin
89 # Terminal permissions
91 # TTYGROUP Login tty will be assigned this group ownership.
92 # TTYPERM Login tty will be set to this permission.
94 # If you have a "write" program which is "setgid" to a special group
95 # which owns the terminals, define TTYGROUP to the group number and
96 # TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign
97 # TTYPERM to either 622 or 600.
103 # Login configuration initializations:
105 # ERASECHAR Terminal ERASE character ('\010' = backspace).
106 # KILLCHAR Terminal KILL character ('\025' = CTRL/U).
107 # UMASK Default "umask" value.
109 # The ERASECHAR and KILLCHAR are used only on System V machines.
111 # Prefix these values with "0" to get octal, "0x" to get hexadecimal.
118 # Min/max values for automatic uid selection in useradd
124 # Min/max values for automatic gid selection in groupadd
130 # Max number of login retries if password is bad
135 # Max time in seconds for login
140 # Which fields may be changed by regular users using chfn - use
141 # any combination of letters "frwh" (full name, room number, work
142 # phone, home phone). If not defined, no changes are allowed.
143 # For backward compatibility, "yes" = "rwh" and "no" = "frwh".
148 # List of groups to add to the user's supplementary group set
149 # when logging in on the console (as determined by the CONSOLE
150 # setting). Default is none.
152 # Use with caution - it is possible for users to gain permanent
153 # access to these groups, even when not logged in on the console.
154 # How to do it is left as an exercise for the reader...
156 #CONSOLE_GROUPS floppy:audio:cdrom
159 # Should login be allowed if we can't cd to the home directory?
165 # If defined, this command is run when removing a user.
166 # It should remove any at/cron/print jobs etc. owned by
167 # the user to be removed (passed as the first argument).
169 #USERDEL_CMD /usr/sbin/userdel_local
172 # When prompting for password without echo, getpass() can optionally
173 # display a random number (in the range 1 to GETPASS_ASTERISKS) of '*'
174 # characters for each character typed. This feature is designed to
175 # confuse people looking over your shoulder when you enter a password :-).
176 # Also, the new getpass() accepts both Backspace (8) and Delete (127)
177 # keys to delete previous character (to cope with different terminal
178 # types), Control-U to delete all characters, and beeps when there are
179 # no more characters to delete, or too many characters entered.
181 # Setting GETPASS_ASTERISKS to 1 results in more traditional behaviour -
182 # exactly one '*' displayed for each character typed.
184 # Setting GETPASS_ASTERISKS to 0 disables the '*' characters (Backspace,
185 # Delete, Control-U and beep continue to work as described above).
187 # Setting GETPASS_ASTERISKS to -1 reverts to the traditional getpass()
188 # without any new features. This is the default.
193 # Enable setting of the umask group bits to be the same as owner bits
194 # (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is
195 # the same as gid, and username is the same as the primary group name.
197 # This also enables userdel to remove user groups if no members exist.