/etc/login.defs 配置檔案
轉自網路
/etc/login.defs 配置檔案;
/etc/login.defs 檔案是當建立使用者時的一些規劃,比如建立使用者時,是否需要家目錄,UID和GID的範圍;使用者的期限等等,這個檔案是可以透過root來定義的;
比如Fedora 的 /etc/logins.defs 檔案內容;
# *REQUIRED*
# Directory where mailboxes reside, _or_ name of file, relative to the
# home directory. If you _do_ define both, MAIL_DIR takes precedence.
# QMAIL_DIR is for Qmail
#
#QMAIL_DIR Maildir
MAIL_DIR /var/spool/mail 注:建立使用者時,要在目錄/var/spool/mail中建立一個使用者mail檔案;
#MAIL_FILE .mail
# Password aging controls:
#
# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between password changes.
# PASS_MIN_LEN Minimum acceptable password length.
# PASS_WARN_AGE Number of days warning given before a password expires.
#
PASS_MAX_DAYS 99999 注:使用者的密碼不過期最多的天數;
PASS_MIN_DAYS 0 注:密碼修改之間最小的天數;
PASS_MIN_LEN 5 注:密碼最小長度;
PASS_WARN_AGE 7 注:
#
# Min/max values for automatic uid selection in useradd
#
UID_MIN 500 注:最小UID為500 ,也就是說新增使用者時,UID 是從500開始的;
UID_MAX 60000 注:最大UID為60000;
#
# Min/max values for automatic gid selection in groupadd
#
GID_MIN 500 注:GID 是從500開始;
GID_MAX 60000
#
# If defined, this command is run when removing a user.
# It should remove any at/cron/print jobs etc. owned by
# the user to be removed (passed as the first argument).
#
#USERDEL_CMD /usr/sbin/userdel_local
#
# If useradd should create home directories for users by default
# On RH systems, we do. This option is ORed with the -m flag on
# useradd command line.
#
CREATE_HOME yes 注:是否創使用者家目錄,要求建立;
# Directory where mailboxes reside, _or_ name of file, relative to the
# home directory. If you _do_ define both, MAIL_DIR takes precedence.
# QMAIL_DIR is for Qmail
#
#QMAIL_DIR Maildir
MAIL_DIR /var/spool/mail 注:建立使用者時,要在目錄/var/spool/mail中建立一個使用者mail檔案;
#MAIL_FILE .mail
# Password aging controls:
#
# PASS_MAX_DAYS Maximum number of days a password may be used.
# PASS_MIN_DAYS Minimum number of days allowed between password changes.
# PASS_MIN_LEN Minimum acceptable password length.
# PASS_WARN_AGE Number of days warning given before a password expires.
#
PASS_MAX_DAYS 99999 注:使用者的密碼不過期最多的天數;
PASS_MIN_DAYS 0 注:密碼修改之間最小的天數;
PASS_MIN_LEN 5 注:密碼最小長度;
PASS_WARN_AGE 7 注:
#
# Min/max values for automatic uid selection in useradd
#
UID_MIN 500 注:最小UID為500 ,也就是說新增使用者時,UID 是從500開始的;
UID_MAX 60000 注:最大UID為60000;
#
# Min/max values for automatic gid selection in groupadd
#
GID_MIN 500 注:GID 是從500開始;
GID_MAX 60000
#
# If defined, this command is run when removing a user.
# It should remove any at/cron/print jobs etc. owned by
# the user to be removed (passed as the first argument).
#
#USERDEL_CMD /usr/sbin/userdel_local
#
# If useradd should create home directories for users by default
# On RH systems, we do. This option is ORed with the -m flag on
# useradd command line.
#
CREATE_HOME yes 注:是否創使用者家目錄,要求建立;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7728585/viewspace-580325/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux /etc/fstab檔案配置說明Linux
- Mariadb 配置檔案模板(/etc/my.cnf)
- Linux etc目錄配置檔案詳解Linux
- Solaris 10中/etc/fstab和/etc/mntab配置檔案的區別
- /etc/nginx/nginx.conf配置檔案詳解Nginx
- AspNetCore配置多環境log4net配置檔案NetCore
- 轉:Linux hostname主機名配置檔案與檔案 /etc/hosts解說Linux
- Linux密碼過期時間設定 /etc/login.defsLinux密碼
- 分享Linux下的sudo及其配置檔案/etc/sudoers詳細配置Linux
- /etc/oratab檔案
- linux samba配置檔案/etc/samba/smb.confLinuxSamba
- 【Mysql】指定/etc/init.d/mysql載入的配置檔案MySql
- Git配置配置檔案Git
- linux中的配置檔案/etc/profile和.bashfile 的區別Linux
- mac 修改 /etc/hosts 檔案Mac
- /etc/hosts檔案簡介
- /etc/oratab 檔案用處
- /etc/fstab檔案詳解
- 8.4.4 配置檔案
- vim配置檔案
- Maven配置檔案Maven
- 配置檔案vimrc
- MySQL配置檔案MySql
- shell配置檔案
- mysql 配置檔案MySql
- WCF配置檔案
- bash配置檔案
- pch檔案配置
- nginx配置檔案Nginx
- Orace RAC安裝-DNS安裝-配置/etc/named.conf檔案DNS
- 【監聽配置】Oracle如何靜默執行NETCA,使用netca.rsp檔案Oracle
- mongodb配置檔案常用配置項MongoDB
- apache 配置檔案的配置(轉)Apache
- .NetCore之下載檔案NetCore
- 熱更新配置檔案
- 理解 Typescript 配置檔案TypeScript
- Git修改配置檔案Git
- 【Mongo】mongo配置檔案Go