128 lines
4.8 KiB
Groff
128 lines
4.8 KiB
Groff
|
.\" Title: login.defs
|
||
|
.\" Author:
|
||
|
.\" Generator: DocBook XSL Stylesheets v1.70.1 <http://docbook.sf.net/>
|
||
|
.\" Date: 20.07.2006
|
||
|
.\" Manual: Filformat och konversioner
|
||
|
.\" Source: Filformat och konversioner
|
||
|
.\"
|
||
|
.TH "LOGIN.DEFS" "5" "20\-07\-2006" "Filformat och konversioner" "Filformat och konversioner"
|
||
|
.\" disable hyphenation
|
||
|
.nh
|
||
|
.\" disable justification (adjust text to left margin only)
|
||
|
.ad l
|
||
|
.SH "NAMN"
|
||
|
login.defs \- shadow password suite configuration
|
||
|
.SH "BESKRIVNING"
|
||
|
.PP
|
||
|
The
|
||
|
\fI/etc/login.defs\fR
|
||
|
file defines the site\-specific configuration for the shadow password suite. This file is required. Absence of this file will not prevent system operation, but will probably result in undesirable operation.
|
||
|
.PP
|
||
|
This file is a readable text file, each line of the file describing one configuration parameter. The lines consist of a configuration name and value, separated by whitespace. Blank lines and comment lines are ignored. Comments are introduced with a "#" pound sign and the pound sign must be the first non\-white character of the line.
|
||
|
.PP
|
||
|
Parameter values may be of four types: strings, booleans, numbers, and long numbers. A string is comprised of any printable characters. A boolean should be either the value "yes" or "no". An undefined boolean parameter or one with a value other than these will be given a "no" value. Numbers (both regular and long) may be either decimal values, octal values (precede the value with "0") or hexadecimal values (precede the value with "0x"). The maximum value of the regular and long numeric parameters is machine\-dependent.
|
||
|
.PP
|
||
|
Följande konfigurationsposter tillhandahålls:
|
||
|
.TP 3n
|
||
|
CHFN_AUTH (boolesk)
|
||
|
If
|
||
|
\fIyes\fR, the
|
||
|
\fBchfn\fR
|
||
|
and
|
||
|
\fBchsh\fR
|
||
|
programs will require authentication before making any changes, unless run by the superuser.
|
||
|
.TP 3n
|
||
|
CHFN_RESTRICT (sträng)
|
||
|
This parameter specifies which values in the
|
||
|
\fIgecos\fR
|
||
|
field of the
|
||
|
\fI/etc/passwd\fR
|
||
|
file may be changed by regular users using the
|
||
|
\fBchfn\fR
|
||
|
program. It can be any combination of letters
|
||
|
\fIf\fR
|
||
|
,\fIr\fR,
|
||
|
\fIw\fR,
|
||
|
\fIh\fR, for Full name, Room number, Work phone, and Home phone, respectively. For backward compatibility, "yes" is equivalent to "rwh" and "no" is equivalent to "frwh". If not specified, only the superuser can make any changes. The most restrictive setting is better achieved by not installing
|
||
|
\fIchfn\fR
|
||
|
SUID.
|
||
|
.PP
|
||
|
GID_MAX (nummer), GID_MIN (nummer)
|
||
|
.RS 3n
|
||
|
Range of group IDs to choose from for the
|
||
|
\fBuseradd\fR
|
||
|
and
|
||
|
\fBgroupadd\fR
|
||
|
programs.
|
||
|
.RE
|
||
|
.TP 3n
|
||
|
MAIL_DIR (sträng)
|
||
|
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.
|
||
|
.TP 3n
|
||
|
PASS_MAX_DAYS (nummer)
|
||
|
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).
|
||
|
.TP 3n
|
||
|
PASS_MIN_DAYS (nummer)
|
||
|
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).
|
||
|
.TP 3n
|
||
|
PASS_WARN_AGE (nummer)
|
||
|
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.
|
||
|
.PP
|
||
|
PASS_MAX_DAYS, PASS_MIN_DAYS och PASS_WARN_AGE används endast när kontot skapas. Alla ändringar av dessa inställningar påverkar inte existerande konton.
|
||
|
.PP
|
||
|
UID_MAX (nummer), UID_MIN (nummer)
|
||
|
.RS 3n
|
||
|
Range of user IDs to choose from for the
|
||
|
\fBuseradd\fR
|
||
|
program.
|
||
|
.RE
|
||
|
.TP 3n
|
||
|
UMASK (nummer)
|
||
|
The permission mask is initialized to this value. If not specified, the permission mask will be initialized to 022.
|
||
|
.TP 3n
|
||
|
USERDEL_CMD (sträng)
|
||
|
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).
|
||
|
.SH "CROSS REFERENCE"
|
||
|
.PP
|
||
|
The following cross reference shows which programs in the shadow password suite use which parameters.
|
||
|
.TP 3n
|
||
|
chfn
|
||
|
CHFN_AUTH CHFN_RESTRICT
|
||
|
.TP 3n
|
||
|
chsh
|
||
|
CHFN_AUTH
|
||
|
.TP 3n
|
||
|
groupadd
|
||
|
GID_MAX GID_MIN
|
||
|
.TP 3n
|
||
|
newusers
|
||
|
PASS_MAX_DAYS PASS_MIN_DAYS PASS_WARN_AGE UMASK
|
||
|
.TP 3n
|
||
|
pwconv
|
||
|
PASS_MAX_DAYS PASS_MIN_DAYS PASS_WARN_AGE
|
||
|
.TP 3n
|
||
|
useradd
|
||
|
GID_MAX GID_MIN PASS_MAX_DAYS PASS_MIN_DAYS PASS_WARN_AGE UID_MAX UID_MIN UMASK
|
||
|
.TP 3n
|
||
|
userdel
|
||
|
MAIL_DIR USERDEL_CMD
|
||
|
.TP 3n
|
||
|
usermod
|
||
|
MAIL_DIR
|
||
|
.SH "FEL"
|
||
|
.PP
|
||
|
Much of the functionality that used to be provided by the shadow password suite is now handled by PAM. Thus,
|
||
|
\fI/etc/login.defs\fR
|
||
|
is no longer used by programs such as:
|
||
|
\fBlogin\fR(1),
|
||
|
\fBpasswd\fR(1),
|
||
|
\fBsu\fR(1). Please refer to the corresponding PAM configuration files instead.
|
||
|
.SH "SE OCKSÅ"
|
||
|
.PP
|
||
|
\fBlogin\fR(1),
|
||
|
\fBpasswd\fR(1),
|
||
|
\fBsu\fR(1),
|
||
|
\fBpasswd\fR(5),
|
||
|
\fBshadow\fR(5),
|
||
|
\fBpam\fR(8).
|