📄 login.defs
字号:
## /etc/login.defs - Configuration control definitions for pwdutils package.## Comment lines (lines beginning with "#") and blank lines are ignored.# Please read the manual page for more information (login.defs.5).### Should login be allowed if we can't cd to the home directory?# Default is yes.#DEFAULT_HOME yes## The default PATH settings (used by login):#ENV_PATH /usr/local/bin:/usr/bin:/bin## The default PATH settings for root (used by login):#ENV_ROOTPATH /sbin:/bin:/usr/sbin:/usr/bin## Delay in seconds before being allowed another attempt# after a login failure#FAIL_DELAY 3## If defined and the file exist, login failures will be# logged here in a utmp format.# last, when invoked as lastb, will read /var/log/btmp, so...##FTMP_FILE /var/log/btmp## If defined, file which inhibits all the usual chatter# during the login sequence. If a full pathname, then hushed# mode will be enabled if the user's name or shell are found# in the file. If not a full pathname, then hushed mode will# be enabled if the file exists in the user's home directory.##HUSHLOGIN_FILE .hushloginHUSHLOGIN_FILE /etc/hushlogins## Enable logging and display of /var/log/lastlog login time info.#LASTLOG_ENAB yes## Enable display of unknown usernames when login failures# are recorded.#LOG_UNKFAIL_ENAB no## Max number of login retries if password is bad#LOGIN_RETRIES 3## Max time in seconds for login#LOGIN_TIMEOUT 60## If defined, ":" delimited list of "message of the day" files to# be displayed upon login.#MOTD_FILE /etc/motd#MOTD_FILE /etc/motd:/usr/lib/news/news-motd## If defined, file which maps tty line to TERM environment parameter.# Each line of the file is in a format something like "vt100 tty01".#TTYTYPE_FILE /etc/ttytype## Terminal permissions## TTYGROUP Login tty will be assigned this group ownership.# TTYPERM Login tty will be set to this permission.## If you have a "write" program which is "setgid" to a special group# which owns the terminals, define TTYGROUP to the group number and# TTYPERM to 0620. Otherwise leave TTYGROUP commented out and assign# TTYPERM to either 622 or 600.#TTYGROUP ttyTTYPERM 0620## Require password before chfn/chsh can make any changes.#CHFN_AUTH yes## Which fields may be changed by regular users using chfn - use# any combination of letters "frwh" (full name, room number, work# phone, home phone). If not defined, no changes are allowed.# For backward compatibility, "yes" = "rwh" and "no" = "frwh".#CHFN_RESTRICT rwh## Password aging controls (used by useradd):## PASS_MAX_DAYS Maximum number of days a password may be used.# PASS_MIN_DAYS Minimum number of days allowed between password changes.# PASS_WARN_AGE Number of days warning given before a password expires.#PASS_MAX_DAYS 99999PASS_MIN_DAYS 0PASS_WARN_AGE 7## Min/max values for automatic uid selection in useradd## SYSTEM_UID_MIN to SYSTEM_UID_MAX inclusive is the range for# UIDs for dynamically allocated administrative and system accounts.# UID_MIN to UID_MAX inclusive is the range of UIDs of dynamically# allocated user accounts.#SYSTEM_UID_MIN 100SYSTEM_UID_MAX 499UID_MIN 1000UID_MAX 60000## Min/max values for automatic gid selection in groupadd## SYSTEM_GID_MIN to SYSTEM_GID_MAX inclusive is the range for# GIDs for dynamically allocated administrative and system groups.# GID_MIN to GID_MAX inclusive is the range of GIDs of dynamically# allocated groups.#SYSTEM_GID_MIN 100SYSTEM_GID_MAX 499GID_MIN 1000GID_MAX 60000## User/group names must match the following regex expression.# The default is [A-Za-z_][A-Za-z0-9_.-]*[A-Za-z0-9_.$-]\?,# but be aware that the result could be depend on the locale settings.##CHARACTER_CLASS [A-Za-z_][A-Za-z0-9_.-]*[A-Za-z0-9_.$-]\?CHARACTER_CLASS [ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_][ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_.-]*[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567899_.$-]\?## Umask which is used by useradd and newusers for creating# new home directories.#UMASK 022## If defined, this command is run when adding a group.# It should rebuild any NIS database etc. to add the# new created group.##GROUPADD_CMD /usr/sbin/groupadd.local## If defined, this command is run when adding a user.# It should rebuild any NIS database etc. to add the# new created account.#USERADD_CMD /usr/sbin/useradd.local## If defined, this command is run before removing a user.# It should remove any at/cron/print jobs etc. owned by# the user to be removed.#USERDEL_PRECMD /usr/sbin/userdel-pre.local## If defined, this command is run after removing a user.# It should rebuild any NIS database etc. to remove the# account from it.#USERDEL_POSTCMD /usr/sbin/userdel-post.local
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -