본문 바로가기
컴퓨터 일반/운영체제

[Redhat] /etc/login.defs 파일의 기능

by ITPro 2010. 8. 11.

/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로 생성된다.

==========================================================

반응형

'컴퓨터 일반 > 운영체제' 카테고리의 다른 글

configure | make | make install  (0) 2010.08.14
utmp, wtmp  (0) 2010.08.11
솔라리스 profile 수정 후 바로 적용하기  (0) 2010.08.11
솔라리스 EEPROM 모니터모드 명령  (0) 2010.08.11
쉘의 특성  (0) 2010.08.11

바로가기