리눅스 login.defs 편집하기

IT위키

경고: 로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다. 로그인하거나 계정을 생성하면 편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.

편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.

최신판 당신의 편집
6번째 줄: 6번째 줄:
<pre class='shell'>
<pre class='shell'>
CREATE_HOME (boolean)
CREATE_HOME (boolean)
    Indicate if a home directory should be created by default for new users.
          Indicate if a home directory should be created by default for new users.


    This setting does not apply to system users, and can be overridden on the command line.
          This setting does not apply to system users, and can be overridden on the command line.


GID_MAX (number), GID_MIN (number)
      GID_MAX (number), GID_MIN (number)
    Range of group IDs used for the creation of regular groups by useradd, groupadd, or newusers.
          Range of group IDs used for the creation of regular groups by useradd, groupadd, or newusers.


    The default value for GID_MIN (resp.  GID_MAX) is 500 (resp. 60000).
          The default value for GID_MIN (resp.  GID_MAX) is 500 (resp. 60000).


MAIL_DIR (string)
      MAIL_DIR (string)
    The mail spool directory. This is needed to manipulate the mailbox when its corresponding user account is modified
          The mail spool directory. This is needed to manipulate the mailbox when its corresponding user account is modified
    or deleted. If not specified, a compile-time default is used.
          or deleted. If not specified, a compile-time default is used.


MAIL_FILE (string)
      MAIL_FILE (string)
    Defines the location of the users mail spool files relatively to their home directory.
          Defines the location of the users mail spool files relatively to their home directory.


The MAIL_DIR and MAIL_FILE variables are used by useradd, usermod, and userdel to create, move, or delete the user´s
      The MAIL_DIR and MAIL_FILE variables are used by useradd, usermod, and userdel to create, move, or delete the user´s
mail spool.
      mail spool.


If MAIL_CHECK_ENAB is set to yes, they are also used to define the MAIL environment variable.
      If MAIL_CHECK_ENAB is set to yes, they are also used to define the MAIL environment variable.


MAX_MEMBERS_PER_GROUP (number)
      MAX_MEMBERS_PER_GROUP (number)
    Maximum members per group entry. When the maximum is reached, a new group entry (line) is started in /etc/group
          Maximum members per group entry. When the maximum is reached, a new group entry (line) is started in /etc/group
    (with the same name, same password, and same GID).
          (with the same name, same password, and same GID).


    The default value is 0, meaning that there are no limits in the number of members in a group.
          The default value is 0, meaning that there are no limits in the number of members in a group.


    This feature (split group) permits to limit the length of lines in the group file. This is useful to make sure that
          This feature (split group) permits to limit the length of lines in the group file. This is useful to make sure that
    lines for NIS groups are not larger than 1024 characters.
          lines for NIS groups are not larger than 1024 characters.


    If you need to enforce such limit, you can use 25.
          If you need to enforce such limit, you can use 25.


    Note: split groups may not be supported by all tools (even in the Shadow toolsuite). You should not use this
          Note: split groups may not be supported by all tools (even in the Shadow toolsuite). You should not use this
    variable unless you really need it.
          variable unless you really need it.


PASS_MAX_DAYS (number)
      PASS_MAX_DAYS (number)
    The maximum number of days a password may be used. If the password is older than this, a password change will be
          The maximum number of days a password may be used. If the password is older than this, a password change will be
    forced. If not specified, -1 will be assumed (which disables the restriction).
          forced. If not specified, -1 will be assumed (which disables the restriction).


PASS_MIN_DAYS (number)
      PASS_MIN_DAYS (number)
    The minimum number of days allowed between password changes. Any password changes attempted sooner than this will
          The minimum number of days allowed between password changes. Any password changes attempted sooner than this will
    be rejected. If not specified, -1 will be assumed (which disables the restriction).
          be rejected. If not specified, -1 will be assumed (which disables the restriction).


PASS_WARN_AGE (number)
      PASS_WARN_AGE (number)
    The number of days warning given before a password expires. A zero means warning is given only upon the day of
          The number of days warning given before a password expires. A zero means warning is given only upon the day of
    expiration, a negative value means no warning is given. If not specified, no warning will be provided.
          expiration, a negative value means no warning is given. If not specified, no warning will be provided.


SYS_GID_MAX (number), SYS_GID_MIN (number)
      SYS_GID_MAX (number), SYS_GID_MIN (number)
    Range of group IDs used for the creation of system groups by useradd, groupadd, or newusers.
          Range of group IDs used for the creation of system groups by useradd, groupadd, or newusers.


    The default value for SYS_GID_MIN (resp.  SYS_GID_MAX) is 201 (resp.  GID_MIN-1).
          The default value for SYS_GID_MIN (resp.  SYS_GID_MAX) is 201 (resp.  GID_MIN-1).


SYS_UID_MAX (number), SYS_UID_MIN (number)
      SYS_UID_MAX (number), SYS_UID_MIN (number)
    Range of user IDs used for the creation of system users by useradd or newusers.
          Range of user IDs used for the creation of system users by useradd or newusers.


    The default value for SYS_UID_MIN (resp.  SYS_UID_MAX) is 201 (resp.  UID_MIN-1).
          The default value for SYS_UID_MIN (resp.  SYS_UID_MAX) is 201 (resp.  UID_MIN-1).


UID_MAX (number), UID_MIN (number)
      UID_MAX (number), UID_MIN (number)
    Range of user IDs used for the creation of regular users by useradd or newusers.
          Range of user IDs used for the creation of regular users by useradd or newusers.


    The default value for UID_MIN (resp.  UID_MAX) is 500 (resp. 60000).
          The default value for UID_MIN (resp.  UID_MAX) is 500 (resp. 60000).


UMASK (number)
      UMASK (number)
    The file mode creation mask is initialized to this value. If not specified, the mask will be initialized to 022.
          The file mode creation mask is initialized to this value. If not specified, the mask will be initialized to 022.


    useradd and newusers use this mask to set the mode of the home directory they create
          useradd and newusers use this mask to set the mode of the home directory they create


    It is also used by login to define users´ initial umask. Note that this mask can be overridden by the user´s GECOS
          It is also used by login to define users´ initial umask. Note that this mask can be overridden by the user´s GECOS
    line (if QUOTAS_ENAB is set) or by the specification of a limit with the K identifier in limits(5).
          line (if QUOTAS_ENAB is set) or by the specification of a limit with the K identifier in limits(5).


USERGROUPS_ENAB (boolean)
      USERGROUPS_ENAB (boolean)
    Enable setting of the umask group bits to be the same as owner bits (examples: 022 -> 002, 077 -> 007) for non-root
          Enable setting of the umask group bits to be the same as owner bits (examples: 022 -> 002, 077 -> 007) for non-root
    users, if the uid is the same as gid, and username is the same as the primary group name.
          users, if the uid is the same as gid, and username is the same as the primary group name.
 
          If set to yes, userdel will remove the user´s group if it contains no more members, and useradd will create by
          default a group with the name of the user.


    If set to yes, userdel will remove the user´s group if it contains no more members, and useradd will create by
    default a group with the name of the user.
</pre>
</pre>


[[분류 : 리눅스]]
[[분류 : 리눅스]]
[[분류 : 리눅스 명령어]]
[[분류 : 리눅스 명령어]]
IT위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-비영리-동일조건변경허락 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 IT위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요!
취소 편집 도움말 (새 창에서 열림)