9. 도서관/__라. LINUX

etc/login.defs파일 설명

행복 금융 2008. 8. 22.





/etc/login.defs파일을 열어보면 메일을 저장하는 디렉토리, 패스워드 관련사항(암호 만료일, 길이, 경고일등, 사용자 추가시 생성되는 UID의 범위, UMASK등을 설정할 수있다.
 
==========================================================
[root@ ~]#  vi /etc/login.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                       
#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의 최소값과 최대값의 범위를 설정
UID_MIN           500
UID_MAX         60000

#
# Min/max values for automatic gid selection in groupadd
# 사용자를 추가할 때 GID의 최소값과 최대값의 범위를 설정
GID_MIN           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
UMASK 076  => 사용자 디렉토리 생성시 UMASK 값을 설정한다. 701로 생성된다.
==========================================================



목차

'9. 도서관 > __라. LINUX' 카테고리의 다른 글

우분투 wireshark 설치  (0) 2008.09.18
Linux Setting perl  (0) 2008.09.10
Introducing BootPROM  (0) 2008.07.30
IP 마스커레이딩(Masquerading)  (0) 2008.07.23
쉘스크립트&소프트웨어 업그래이드  (0) 2008.07.03

댓글