Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / sv / chgpasswd.8
1 '\" t
2 .\"     Title: chgpasswd
3 .\"    Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5 .\"      Date: 16-02-2011
6 .\"    Manual: Systemhanteringskommandon
7 .\"    Source: Systemhanteringskommandon
8 .\"  Language: Swedish
9 .\"
10 .TH "CHGPASSWD" "8" "16-02-2011" "Systemhanteringskommandon" "Systemhanteringskommandon"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAMN"
31 chgpasswd \- uppdatera gruppl\(:osenord i satsl\(:age
32 .SH "SYNOPSIS"
33 .HP \w'\fBchgpasswd\fR\ 'u
34 \fBchgpasswd\fR [\fIflaggor\fR]
35 .SH "BESKRIVNING"
36 .PP
37 The
38 \fBchgpasswd\fR
39 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:
40 .PP
41 \fIgruppnamn\fR:\fIl\(:osenord\fR
42 .PP
43 By default the supplied password must be in clear\-text, and is encrypted by
44 \fBchgpasswd\fR\&.
45 .PP
46 The default encryption algorithm can be defined for the system with the ENCRYPT_METHOD variable of
47 /etc/login\&.defs, and can be overwiten with the
48 \fB\-e\fR,
49 \fB\-m\fR, or
50 \fB\-c\fR
51 options\&.
52 .PP
53 This command is intended to be used in a large system environment where many accounts are created at a single time\&.
54 .SH "FLAGGOR"
55 .PP
56 Flaggorna som g\(:aller f\(:or kommandot
57 \fBchgpasswd\fR
58 \(:ar:
59 .PP
60 \fB\-c\fR, \fB\-\-crypt\-method\fR
61 .RS 4
62 Use the specified method to encrypt the passwords\&.
63 .sp
64 The available methods are DES, MD5, NONE, and SHA256 or SHA512 if your libc support these methods\&.
65 .RE
66 .PP
67 \fB\-e\fR, \fB\-\-encrypted\fR
68 .RS 4
69 Ins\(:anda l\(:osenord \(:ar i ett krypterat format\&.
70 .RE
71 .PP
72 \fB\-h\fR, \fB\-\-help\fR
73 .RS 4
74 Visa hj\(:alpmeddelande och avsluta\&.
75 .RE
76 .PP
77 \fB\-m\fR, \fB\-\-md5\fR
78 .RS 4
79 Anv\(:and MD5\-kryptering ist\(:allet f\(:or DES n\(:ar ins\(:anda l\(:osenord inte \(:ar krypterade\&.
80 .RE
81 .PP
82 \fB\-s\fR, \fB\-\-sha\-rounds\fR
83 .RS 4
84 Use the specified number of rounds to encrypt the passwords\&.
85 .sp
86 The value 0 means that the system will choose the default number of rounds for the crypt method (5000)\&.
87 .sp
88 A minimal value of 1000 and a maximal value of 999,999,999 will be enforced\&.
89 .sp
90 You can only use this option with the SHA256 or SHA512 crypt method\&.
91 .sp
92 By default, the number of rounds is defined by the SHA_CRYPT_MIN_ROUNDS and SHA_CRYPT_MAX_ROUNDS variables in
93 /etc/login\&.defs\&.
94 .RE
95 .SH "T\(:ANK P\(oA"
96 .PP
97 Kom ih\(oag att st\(:alla in r\(:attigheter eller umask f\(:or att f\(:orhindra l\(:asning av okrypterade filer f\(:or andra anv\(:andare\&.
98 .PP
99 You should make sure the passwords and the encryption method respect the system\*(Aqs password policy\&.
100 .SH "CONFIGURATION"
101 .PP
102 The following configuration variables in
103 /etc/login\&.defs
104 change the behavior of this tool:
105 .PP
106 \fBENCRYPT_METHOD\fR (string)
107 .RS 4
108 This defines the system default encryption algorithm for encrypting passwords (if no algorithm are specified on the command line)\&.
109 .sp
110 It can take one of these values:
111 .sp
112 .RS 4
113 .ie n \{\
114 \h'-04'\(bu\h'+03'\c
115 .\}
116 .el \{\
117 .sp -1
118 .IP \(bu 2.3
119 .\}
120 \fIDES\fR
121 (default)
122 .RE
123 .sp
124 .RS 4
125 .ie n \{\
126 \h'-04'\(bu\h'+03'\c
127 .\}
128 .el \{\
129 .sp -1
130 .IP \(bu 2.3
131 .\}
132 \fIMD5\fR
133 .RE
134 .sp
135 .RS 4
136 .ie n \{\
137 \h'-04'\(bu\h'+03'\c
138 .\}
139 .el \{\
140 .sp -1
141 .IP \(bu 2.3
142 .\}
143 \fISHA256\fR
144 .RE
145 .sp
146 .RS 4
147 .ie n \{\
148 \h'-04'\(bu\h'+03'\c
149 .\}
150 .el \{\
151 .sp -1
152 .IP \(bu 2.3
153 .\}
154 \fISHA512\fR
155 .RE
156 .sp
157 Note: this parameter overrides the
158 \fBMD5_CRYPT_ENAB\fR
159 variable\&.
160 .RE
161 .PP
162 \fBMAX_MEMBERS_PER_GROUP\fR (number)
163 .RS 4
164 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
165 /etc/group
166 (with the same name, same password, and same GID)\&.
167 .sp
168 The default value is 0, meaning that there are no limits in the number of members in a group\&.
169 .sp
170 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\&.
171 .sp
172 If you need to enforce such limit, you can use 25\&.
173 .sp
174 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\&.
175 .RE
176 .PP
177 \fBMD5_CRYPT_ENAB\fR (boolean)
178 .RS 4
179 Indicate if passwords must be encrypted using the MD5\-based algorithm\&. If set to
180 \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
181 \fIno\fR
182 if you need to copy encrypted passwords to other systems which don\*(Aqt understand the new algorithm\&. Default is
183 \fIno\fR\&.
184 .sp
185 This variable is superceded by the
186 \fBENCRYPT_METHOD\fR
187 variable or by any command line option used to configure the encryption algorithm\&.
188 .sp
189 This variable is deprecated\&. You should use
190 \fBENCRYPT_METHOD\fR\&.
191 .RE
192 .PP
193 \fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number)
194 .RS 4
195 When
196 \fBENCRYPT_METHOD\fR
197 is set to
198 \fISHA256\fR
199 or
200 \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)\&.
201 .sp
202 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\&.
203 .sp
204 If not specified, the libc will choose the default number of rounds (5000)\&.
205 .sp
206 The values must be inside the 1000\-999999999 range\&.
207 .sp
208 If only one of the
209 \fBSHA_CRYPT_MIN_ROUNDS\fR
210 or
211 \fBSHA_CRYPT_MAX_ROUNDS\fR
212 values is set, then this value will be used\&.
213 .sp
214 If
215 \fBSHA_CRYPT_MIN_ROUNDS\fR
216 >
217 \fBSHA_CRYPT_MAX_ROUNDS\fR, the highest value will be used\&.
218 .RE
219 .SH "FILER"
220 .PP
221 /etc/group
222 .RS 4
223 Gruppkontoinformation\&.
224 .RE
225 .PP
226 /etc/gshadow
227 .RS 4
228 S\(:aker gruppkontoinformation\&.
229 .RE
230 .PP
231 /etc/login\&.defs
232 .RS 4
233 Shadow password suite configuration\&.
234 .RE
235 .SH "SE OCKS\(oA"
236 .PP
237
238 \fBgpasswd\fR(1),
239 \fBgroupadd\fR(8),
240 \fBlogin.defs\fR(5)\&.