3
3
.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
5
5
.\" Manual: Systemhanteringskommandon
6
6
.\" Source: Systemhanteringskommandon
8
.TH "CHGPASSWD" "8" "03-04-2008" "Systemhanteringskommandon" "Systemhanteringskommandon"
8
.TH "CHGPASSWD" "8" "15-04-2009" "Systemhanteringskommandon" "Systemhanteringskommandon"
9
9
.\" disable hyphenation
11
11
.\" disable justification (adjust text to left margin only)
22
command reads a list of group name and password pairs from standard input and uses this information to update a set of existing groups\. Each line is of the format:
22
command reads a list of group name and password pairs from standard input and uses this information to update a set of existing groups\&. Each line is of the format:
24
24
\fIgruppnamn\fR:\fIlösenord\fR
26
26
By default the supplied password must be in clear\-text, and is encrypted by
29
29
The default encryption algorithm can be defined for the system with the ENCRYPT_METHOD variable of
30
\fI/etc/login\.defs\fR, and can be overwiten with the
30
\fI/etc/login\&.defs\fR, and can be overwiten with the
36
This command is intended to be used in a large system environment where many accounts are created at a single time\.
36
This command is intended to be used in a large system environment where many accounts are created at a single time\&.
39
39
Flaggorna som gäller för kommandot
43
43
\fB\-c\fR, \fB\-\-crypt\-method\fR
45
Use the specified method to encrypt the passwords\.
45
Use the specified method to encrypt the passwords\&.
47
The available methods are DES, MD5, NONE, and SHA256 or SHA512 if your libc support these methods\.
47
The available methods are DES, MD5, NONE, and SHA256 or SHA512 if your libc support these methods\&.
50
50
\fB\-e\fR, \fB\-\-encrypted\fR
52
Insända lösenord är i ett krypterat format\.
52
Insända lösenord är i ett krypterat format\&.
55
55
\fB\-h\fR, \fB\-\-help\fR
57
Visa hjälpmeddelande och avsluta\.
57
Visa hjälpmeddelande och avsluta\&.
60
60
\fB\-m\fR, \fB\-\-md5\fR
62
Använd MD5\-kryptering istället för DES när insända lösenord inte är krypterade\.
62
Använd MD5\-kryptering istället för DES när insända lösenord inte är krypterade\&.
65
65
\fB\-s\fR, \fB\-\-sha\-rounds\fR
67
Use the specified number of rounds to encrypt the passwords\.
69
The value 0 means that the system will choose the default number of rounds for the crypt method (5000)\.
71
A minimal value of 1000 and a maximal value of 999,999,999 will be enforced\.
73
You can only use this option with the SHA256 or SHA512 crypt method\.
67
Use the specified number of rounds to encrypt the passwords\&.
69
The value 0 means that the system will choose the default number of rounds for the crypt method (5000)\&.
71
A minimal value of 1000 and a maximal value of 999,999,999 will be enforced\&.
73
You can only use this option with the SHA256 or SHA512 crypt method\&.
75
75
By default, the number of rounds is defined by the SHA_CRYPT_MIN_ROUNDS and SHA_CRYPT_MAX_ROUNDS variables in
76
\fI/etc/login\.defs\fR\.
76
\fI/etc/login\&.defs\fR\&.
80
Kom ihåg att ställa in rättigheter eller umask för att förhindra läsning av okrypterade filer för andra användare\.
80
Kom ihåg att ställa in rättigheter eller umask för att förhindra läsning av okrypterade filer för andra användare\&.
81
81
.SH "CONFIGURATION"
83
83
The following configuration variables in
84
\fI/etc/login\.defs\fR
84
\fI/etc/login\&.defs\fR
85
85
change the behavior of this tool:
87
87
\fBENCRYPT_METHOD\fR (string)
89
This defines the system default encryption algorithm for encrypting passwords (if no algorithm are specified on the command line)\.
89
This defines the system default encryption algorithm for encrypting passwords (if no algorithm are specified on the command line)\&.
91
91
It can take one of these values:
111
111
Note: this parameter overrides the
112
112
\fBMD5_CRYPT_ENAB\fR
115
Note: if you use PAM, it is recommended to set this variable consistently with the PAM modules configuration\.
115
Note: if you use PAM, it is recommended to set this variable consistently with the PAM modules configuration\&.
118
118
\fBMAX_MEMBERS_PER_GROUP\fR (number)
120
Maximum members per group entry\. When the maximum is reached, a new group entry (line) is started in
120
Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
122
(with the same name, same password, and same GID)\.
124
The default value is 0, meaning that there are no limits in the number of members in a group\.
126
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\.
128
If you need to enforce such limit, you can use 25\.
130
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\.
122
(with the same name, same password, and same GID)\&.
124
The default value is 0, meaning that there are no limits in the number of members in a group\&.
126
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\&.
128
If you need to enforce such limit, you can use 25\&.
130
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\&.
133
133
\fBMD5_CRYPT_ENAB\fR (boolean)
135
Indicate if passwords must be encrypted using the MD5\-based algorithm\. If set to
136
\fIyes\fR, new passwords will be encrypted using the MD5\-based algorithm compatible with the one used by recent releases of FreeBSD\. It supports passwords of unlimited length and longer salt strings\. Set to
135
Indicate if passwords must be encrypted using the MD5\-based algorithm\&. If set to
136
\fIyes\fR, new passwords will be encrypted using the MD5\-based algorithm compatible with the one used by recent releases of FreeBSD\&. It supports passwords of unlimited length and longer salt strings\&. Set to
138
if you need to copy encrypted passwords to other systems which don\'t understand the new algorithm\. Default is
138
if you need to copy encrypted passwords to other systems which don\'t understand the new algorithm\&. Default is
141
141
This variable is superceded by the
142
142
\fBENCRYPT_METHOD\fR
143
variable or by any command line option used to configure the encryption algorithm\.
145
This variable is deprecated\. You should use
146
\fBENCRYPT_METHOD\fR\.
148
Note: if you use PAM, it is recommended to set this variable consistently with the PAM modules configuration\.
143
variable or by any command line option used to configure the encryption algorithm\&.
145
This variable is deprecated\&. You should use
146
\fBENCRYPT_METHOD\fR\&.
148
Note: if you use PAM, it is recommended to set this variable consistently with the PAM modules configuration\&.
151
151
\fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number)
158
\fISHA512\fR, this defines the number of SHA rounds used by the encryption algorithm by default (when the number of rounds is not specified on the command line)\.
160
With a lot of rounds, it is more difficult to brute forcing the password\. But note also that more CPU resources will be needed to authenticate users\.
162
If not specified, the libc will choose the default number of rounds (5000)\.
164
The values must be inside the 1000\-999999999 range\.
158
\fISHA512\fR, this defines the number of SHA rounds used by the encryption algorithm by default (when the number of rounds is not specified on the command line)\&.
160
With a lot of rounds, it is more difficult to brute forcing the password\&. But note also that more CPU resources will be needed to authenticate users\&.
162
If not specified, the libc will choose the default number of rounds (5000)\&.
164
The values must be inside the 1000\-999999999 range\&.
166
166
If only one of the
167
167
\fBSHA_CRYPT_MIN_ROUNDS\fR
169
169
\fBSHA_CRYPT_MAX_ROUNDS\fR
170
values is set, then this value will be used\.
170
values is set, then this value will be used\&.
173
173
\fBSHA_CRYPT_MIN_ROUNDS\fR
175
\fBSHA_CRYPT_MAX_ROUNDS\fR, the highest value will be used\.
175
\fBSHA_CRYPT_MAX_ROUNDS\fR, the highest value will be used\&.
181
Gruppkontoinformation\.
181
Gruppkontoinformation\&.
184
184
\fI/etc/gshadow\fR
186
Säker gruppkontoinformation\.
186
Säker gruppkontoinformation\&.
189
\fI/etc/login\.defs\fR
189
\fI/etc/login\&.defs\fR
191
Shadow password suite configuration\.
191
Shadow password suite configuration\&.
196
196
\fBgpasswd\fR(1),
197
197
\fBgroupadd\fR(8),
198
\fBlogin.defs\fR(5)\.
198
\fBlogin.defs\fR(5)\&.