Initial commit: Uploaded everything from abs/core
[arch-rock.git] / base / shadow / login.defs
blob9b1fab05a3c50c9e99b5e6834ef7505e739f1610
2 # /etc/login.defs - Configuration control definitions for the login package.
4 # Three items must be defined:  MAIL_DIR, ENV_SUPATH, and ENV_PATH.
5 # If unspecified, some arbitrary (and possibly incorrect) value will
6 # be assumed.  All other items are optional - if not specified then
7 # the described action or option will be inhibited.
9 # Comment lines (lines beginning with "#") and blank lines are ignored.
11 # Modified for Linux.  --marekm
14 # Delay in seconds before being allowed another attempt after a login failure
16 FAIL_DELAY              3
19 # Enable display of unknown usernames when login failures are recorded.
21 LOG_UNKFAIL_ENAB        no
24 # Enable logging of successful logins
26 LOG_OK_LOGINS           no
29 # Enable "syslog" logging of su activity - in addition to sulog file logging.
30 # SYSLOG_SG_ENAB does the same for newgrp and sg.
32 SYSLOG_SU_ENAB          yes
33 SYSLOG_SG_ENAB          yes
36 # If defined, either full pathname of a file containing device names or
37 # a ":" delimited list of device names.  Root logins will be allowed only
38 # upon these devices.
40 CONSOLE         /etc/securetty
41 #CONSOLE        console:tty01:tty02:tty03:tty04
44 # If defined, all su activity is logged to this file.
46 #SULOG_FILE     /var/log/sulog
49 # If defined, file which maps tty line to TERM environment parameter.
50 # Each line of the file is in a format something like "vt100  tty01".
52 #TTYTYPE_FILE   /etc/ttytype
55 # If defined, the command name to display when running "su -".  For
56 # example, if this is defined as "su" then a "ps" will display the
57 # command is "-su".  If not defined, then "ps" would display the
58 # name of the shell actually being run, e.g. something like "-sh".
60 SU_NAME         su
63 # *REQUIRED*
64 #   Directory where mailboxes reside, _or_ name of file, relative to the
65 #   home directory.  If you _do_ define both, MAIL_DIR takes precedence.
66 #   QMAIL_DIR is for Qmail
68 #QMAIL_DIR      Maildir
69 MAIL_DIR        /var/spool/mail
72 # If defined, file which inhibits all the usual chatter during the login
73 # sequence.  If a full pathname, then hushed mode will be enabled if the
74 # user's name or shell are found in the file.  If not a full pathname, then
75 # hushed mode will be enabled if the file exists in the user's home directory.
77 HUSHLOGIN_FILE  .hushlogin
78 #HUSHLOGIN_FILE /etc/hushlogins
81 # *REQUIRED*  The default PATH settings, for superuser and normal users.
83 # (they are minimal, add the rest in the shell startup files)
84 ENV_SUPATH      PATH=/sbin:/bin:/usr/sbin:/usr/bin
85 ENV_PATH        PATH=/bin:/usr/bin
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.
98 TTYGROUP        tty
99 TTYPERM         0600
102 # Login configuration initializations:
104 #       ERASECHAR       Terminal ERASE character ('\010' = backspace).
105 #       KILLCHAR        Terminal KILL character ('\025' = CTRL/U).
106 #       UMASK           Default "umask" value.
108 # The ERASECHAR and KILLCHAR are used only on System V machines.
109 # The ULIMIT is used only if the system supports it.
110 # (now it works with setrlimit too; ulimit is in 512-byte units)
112 # Prefix these values with "0" to get octal, "0x" to get hexadecimal.
114 ERASECHAR       0177
115 KILLCHAR        025
116 UMASK           077
119 # Password aging controls:
121 #       PASS_MAX_DAYS   Maximum number of days a password may be used.
122 #       PASS_MIN_DAYS   Minimum number of days allowed between password changes.
123 #       PASS_WARN_AGE   Number of days warning given before a password expires.
125 PASS_MAX_DAYS   99999
126 PASS_MIN_DAYS   0
127 PASS_WARN_AGE   7
130 # Min/max values for automatic uid selection in useradd
132 UID_MIN                  1000
133 UID_MAX                 60000
136 # Min/max values for automatic gid selection in groupadd
138 GID_MIN                   100
139 GID_MAX                 60000
142 # Max number of login retries if password is bad
144 LOGIN_RETRIES           5
147 # Max time in seconds for login
149 LOGIN_TIMEOUT           60
152 # Which fields may be changed by regular users using chfn - use
153 # any combination of letters "frwh" (full name, room number, work
154 # phone, home phone).  If not defined, no changes are allowed.
155 # For backward compatibility, "yes" = "rwh" and "no" = "frwh".
157 CHFN_RESTRICT           rwh
160 # List of groups to add to the user's supplementary group set
161 # when logging in on the console (as determined by the CONSOLE
162 # setting).  Default is none.
164 # Use with caution - it is possible for users to gain permanent
165 # access to these groups, even when not logged in on the console.
166 # How to do it is left as an exercise for the reader...
168 #CONSOLE_GROUPS         floppy:audio:cdrom
171 # Should login be allowed if we can't cd to the home directory?
172 # Default in no.
174 DEFAULT_HOME    yes
177 # If defined, this command is run when removing a user.
178 # It should remove any at/cron/print jobs etc. owned by
179 # the user to be removed (passed as the first argument).
181 #USERDEL_CMD    /usr/sbin/userdel_local
184 # When prompting for password without echo, getpass() can optionally
185 # display a random number (in the range 1 to GETPASS_ASTERISKS) of '*'
186 # characters for each character typed.  This feature is designed to
187 # confuse people looking over your shoulder when you enter a password :-).
188 # Also, the new getpass() accepts both Backspace (8) and Delete (127)
189 # keys to delete previous character (to cope with different terminal
190 # types), Control-U to delete all characters, and beeps when there are
191 # no more characters to delete, or too many characters entered.
193 # Setting GETPASS_ASTERISKS to 1 results in more traditional behaviour -
194 # exactly one '*' displayed for each character typed.
196 # Setting GETPASS_ASTERISKS to 0 disables the '*' characters (Backspace,
197 # Delete, Control-U and beep continue to work as described above).
199 # Setting GETPASS_ASTERISKS to -1 reverts to the traditional getpass()
200 # without any new features.  This is the default.
202 #GETPASS_ASTERISKS 1
205 # Enable setting of the umask group bits to be the same as owner bits
206 # (examples: 022 -> 002, 077 -> 007) for non-root users, if the uid is
207 # the same as gid, and username is the same as the primary group name.
209 # This also enables userdel to remove user groups if no members exist.
211 USERGROUPS_ENAB yes