|
|
2de3ab |
#
|
|
|
2de3ab |
# Please note that the parameters in this configuration file control the
|
|
|
2de3ab |
# behavior of the tools from the shadow-utils component. None of these
|
|
|
2de3ab |
# tools uses the PAM mechanism, and the utilities that use PAM (such as the
|
|
|
2de3ab |
# passwd command) should therefore be configured elsewhere. Refer to
|
|
|
2de3ab |
# /etc/pam.d/system-auth for more information.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Delay in seconds before being allowed another attempt after a login failure
|
|
|
2de3ab |
# Note: When PAM is used, some modules may enforce a minimum delay (e.g.
|
|
|
2de3ab |
# pam_unix(8) enforces a 2s delay)
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#FAIL_DELAY 3
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently FAILLOG_ENAB is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Enable display of unknown usernames when login(1) failures are recorded.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#LOG_UNKFAIL_ENAB no
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently LOG_OK_LOGINS is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently LASTLOG_ENAB is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Limit the highest user ID number for which the lastlog entries should
|
|
|
2de3ab |
# be updated.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# No LASTLOG_UID_MAX means that there is no user ID limit for writing
|
|
|
2de3ab |
# lastlog entries.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#LASTLOG_UID_MAX
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently MAIL_CHECK_ENAB is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently OBSCURE_CHECKS_ENAB is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently PORTTIME_CHECKS_ENAB is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently QUOTAS_ENAB is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently SYSLOG_SU_ENAB is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Enable "syslog" logging of newgrp(1) and sg(1) activity.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#SYSLOG_SG_ENAB yes
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently CONSOLE is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently SULOG_FILE is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently MOTD_FILE is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently ISSUE_FILE is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently TTYTYPE_FILE is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently FTMP_FILE is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently NOLOGINS_FILE is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently SU_NAME is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# *REQUIRED*
|
|
|
2de3ab |
# Directory where mailboxes reside, _or_ name of file, relative to the
|
|
|
2de3ab |
# home directory. If you _do_ define both, MAIL_DIR takes precedence.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
MAIL_DIR /var/spool/mail
|
|
|
2de3ab |
#MAIL_FILE .mail
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# If defined, file which inhibits all the usual chatter during the login
|
|
|
2de3ab |
# sequence. If a full pathname, then hushed mode will be enabled if the
|
|
|
2de3ab |
# user's name or shell are found in the file. If not a full pathname, then
|
|
|
2de3ab |
# hushed mode will be enabled if the file exists in the user's home directory.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#HUSHLOGIN_FILE .hushlogin
|
|
|
2de3ab |
#HUSHLOGIN_FILE /etc/hushlogins
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently ENV_TZ is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently ENV_HZ is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# The default PATH settings, for superuser and normal users.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# (they are minimal, add the rest in the shell startup files)
|
|
|
2de3ab |
#ENV_SUPATH PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
2de3ab |
#ENV_PATH PATH=/bin:/usr/bin
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Terminal permissions
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# TTYGROUP Login tty will be assigned this group ownership.
|
|
|
2de3ab |
# TTYPERM Login tty will be set to this permission.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# If you have a write(1) program which is "setgid" to a special group
|
|
|
2de3ab |
# which owns the terminals, define TTYGROUP as the number of such group
|
|
|
2de3ab |
# and TTYPERM as 0620. Otherwise leave TTYGROUP commented out and
|
|
|
2de3ab |
# set TTYPERM to either 622 or 600.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#TTYGROUP tty
|
|
|
2de3ab |
#TTYPERM 0600
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently ERASECHAR, KILLCHAR and ULIMIT are not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Default initial "umask" value used by login(1) on non-PAM enabled systems.
|
|
|
2de3ab |
# Default "umask" value for pam_umask(8) on PAM enabled systems.
|
|
|
2de3ab |
# UMASK is also used by useradd(8) and newusers(8) to set the mode for new
|
|
|
2de3ab |
# home directories if HOME_MODE is not set.
|
|
|
2de3ab |
# 022 is the default value, but 027, or even 077, could be considered
|
|
|
2de3ab |
# for increased privacy. There is no One True Answer here: each sysadmin
|
|
|
2de3ab |
# must make up their mind.
|
|
|
2de3ab |
UMASK 022
|
|
|
2de3ab |
|
|
|
2de3ab |
# HOME_MODE is used by useradd(8) and newusers(8) to set the mode for new
|
|
|
2de3ab |
# home directories.
|
|
|
2de3ab |
# If HOME_MODE is not set, the value of UMASK is used to create the mode.
|
|
|
2de3ab |
HOME_MODE 0700
|
|
|
2de3ab |
|
|
|
2de3ab |
# Password aging controls:
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# PASS_MAX_DAYS Maximum number of days a password may be used.
|
|
|
2de3ab |
# PASS_MIN_DAYS Minimum number of days allowed between password changes.
|
|
|
2de3ab |
# PASS_MIN_LEN Minimum acceptable password length.
|
|
|
2de3ab |
# PASS_WARN_AGE Number of days warning given before a password expires.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
PASS_MAX_DAYS 99999
|
|
|
2de3ab |
PASS_MIN_DAYS 0
|
|
|
2de3ab |
PASS_WARN_AGE 7
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently PASS_MIN_LEN is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently SU_WHEEL_ONLY is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently CRACKLIB_DICTPATH is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Min/max values for automatic uid selection in useradd(8)
|
|
|
2de3ab |
#
|
|
|
2de3ab |
UID_MIN 1000
|
|
|
2de3ab |
UID_MAX 60000
|
|
|
2de3ab |
# System accounts
|
|
|
2de3ab |
SYS_UID_MIN 201
|
|
|
2de3ab |
SYS_UID_MAX 999
|
|
|
2de3ab |
# Extra per user uids
|
|
|
2de3ab |
SUB_UID_MIN 100000
|
|
|
2de3ab |
SUB_UID_MAX 600100000
|
|
|
2de3ab |
SUB_UID_COUNT 65536
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Min/max values for automatic gid selection in groupadd(8)
|
|
|
2de3ab |
#
|
|
|
2de3ab |
GID_MIN 1000
|
|
|
2de3ab |
GID_MAX 60000
|
|
|
2de3ab |
# System accounts
|
|
|
2de3ab |
SYS_GID_MIN 201
|
|
|
2de3ab |
SYS_GID_MAX 999
|
|
|
2de3ab |
# Extra per user group ids
|
|
|
2de3ab |
SUB_GID_MIN 100000
|
|
|
2de3ab |
SUB_GID_MAX 600100000
|
|
|
2de3ab |
SUB_GID_COUNT 65536
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Max number of login(1) retries if password is bad
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#LOGIN_RETRIES 3
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Max time in seconds for login(1)
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#LOGIN_TIMEOUT 60
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently PASS_CHANGE_TRIES is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently PASS_ALWAYS_WARN is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently PASS_MAX_LEN is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently CHFN_AUTH is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Which fields may be changed by regular users using chfn(1) - use
|
|
|
2de3ab |
# any combination of letters "frwh" (full name, room number, work
|
|
|
2de3ab |
# phone, home phone). If not defined, no changes are allowed.
|
|
|
2de3ab |
# For backward compatibility, "yes" = "rwh" and "no" = "frwh".
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#CHFN_RESTRICT rwh
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently LOGIN_STRING is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently MD5_CRYPT_ENAB is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# If set to MD5, MD5-based algorithm will be used for encrypting password
|
|
|
2de3ab |
# If set to SHA256, SHA256-based algorithm will be used for encrypting password
|
|
|
2de3ab |
# If set to SHA512, SHA512-based algorithm will be used for encrypting password
|
|
|
2de3ab |
# If set to BLOWFISH, BLOWFISH-based algorithm will be used for encrypting password
|
|
|
2de3ab |
# If set to DES, DES-based algorithm will be used for encrypting password (default)
|
|
|
2de3ab |
#
|
|
|
2de3ab |
ENCRYPT_METHOD SHA512
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Only works if ENCRYPT_METHOD is set to SHA256 or SHA512.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Define the number of SHA rounds.
|
|
|
2de3ab |
# With a lot of rounds, it is more difficult to brute-force the password.
|
|
|
2de3ab |
# However, more CPU resources will be needed to authenticate users if
|
|
|
2de3ab |
# this value is increased.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# If not specified, the libc will choose the default number of rounds (5000).
|
|
|
2de3ab |
# The values must be within the 1000-999999999 range.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#SHA_CRYPT_MAX_ROUNDS 5000
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently SHA_CRYPT_MIN_ROUNDS is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently BCRYPT_MIN_ROUNDS and BCRYPT_MAX_ROUNDS are not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently CONSOLE_GROUPS is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Should login be allowed if we can't cd to the home directory?
|
|
|
2de3ab |
# Default is yes.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#DEFAULT_HOME yes
|
|
|
2de3ab |
|
|
|
2de3ab |
# Currently ENVIRON_FILE is not supported
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# If defined, this command is run when removing a user.
|
|
|
2de3ab |
# It should remove any at/cron/print jobs etc. owned by
|
|
|
2de3ab |
# the user to be removed (passed as the first argument).
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#USERDEL_CMD /usr/sbin/userdel_local
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Enables userdel(8) to remove user groups if no members exist.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
USERGROUPS_ENAB yes
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# If set to a non-zero number, the shadow utilities will make sure that
|
|
|
2de3ab |
# groups never have more than this number of users on one line.
|
|
|
2de3ab |
# This permits to support split groups (groups split into multiple lines,
|
|
|
2de3ab |
# with the same group ID, to avoid limitation of the line length in the
|
|
|
2de3ab |
# group file).
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# 0 is the default value and disables this feature.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#MAX_MEMBERS_PER_GROUP 0
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# If useradd(8) should create home directories for users by default (non
|
|
|
2de3ab |
# system users only).
|
|
|
2de3ab |
# This option is overridden with the -M or -m flags on the useradd(8)
|
|
|
2de3ab |
# command-line.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
CREATE_HOME yes
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Force use shadow, even if shadow passwd & shadow group files are
|
|
|
2de3ab |
# missing.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
#FORCE_SHADOW yes
|
|
|
2de3ab |
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Select the HMAC cryptography algorithm.
|
|
|
2de3ab |
# Used in pam_timestamp module to calculate the keyed-hash message
|
|
|
2de3ab |
# authentication code.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
# Note: It is recommended to check hmac(3) to see the possible algorithms
|
|
|
2de3ab |
# that are available in your system.
|
|
|
2de3ab |
#
|
|
|
2de3ab |
HMAC_CRYPTO_ALGO SHA512
|