Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / pl / gpasswd.1
1 '\" t
2 .\"     Title: gpasswd
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: 02/16/2011
6 .\"    Manual: Polecenia użytkownik\('ow
7 .\"    Source: Polecenia użytkownik\('ow
8 .\"  Language: Polish
9 .\"
10 .TH "GPASSWD" "1" "02/16/2011" "Polecenia użytkownik\('ow" "Polecenia użytkownik\('ow"
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 "NAZWA"
31 gpasswd \- administer /etc/group and /etc/gshadow
32 .SH "SK\(/LADNIA"
33 .HP \w'\fBgpasswd\fR\ 'u
34 \fBgpasswd\fR [\fIoption\fR] \fIgroup\fR
35 .SH "OPIS"
36 .PP
37 The
38 \fBgpasswd\fR
39 command is used to administer
40 /etc/group, and /etc/gshadow\&. Every group can have
41 administrators,
42 members and a password\&.
43 .PP
44 System administrators can use the
45 \fB\-A\fR
46 option to define group administrator(s) and the
47 \fB\-M\fR
48 option to define members\&. They have all rights of group administrators and members\&.
49 .PP
50
51 \fBgpasswd\fR
52 called by
53 a group administrator
54 with a group name only prompts for the new password of the
55 \fIgroup\fR\&.
56 .PP
57 If a password is set the members can still use
58 \fBnewgrp\fR(1)
59 without a password, and non\-members must supply the password\&.
60 .SS "Notes about group passwords"
61 .PP
62 Group passwords are an inherent security problem since more than one person is permitted to know the password\&. However, groups are a useful tool for permitting co\-operation between different users\&.
63 .SH "OPCJE"
64 .PP
65 Except for the
66 \fB\-A\fR
67 and
68 \fB\-M\fR
69 options, the options cannot be combined\&.
70 .PP
71 The options which apply to the
72 \fBgpasswd\fR
73 command are:
74 .PP
75 \fB\-a\fR, \fB\-\-add\fR \fIuser\fR
76 .RS 4
77 Add the
78 \fIuser\fR
79 to the named
80 \fIgroup\fR\&.
81 .RE
82 .PP
83 \fB\-d\fR, \fB\-\-delete\fR \fIuser\fR
84 .RS 4
85 Remove the
86 \fIuser\fR
87 from the named
88 \fIgroup\fR\&.
89 .RE
90 .PP
91 \fB\-r\fR, \fB\-\-remove\-password\fR
92 .RS 4
93 Remove the password from the named
94 \fIgroup\fR\&. Only group members will be allowed to use
95 \fBnewgrp\fR
96 to join the named
97 \fIgroup\fR\&.
98 .RE
99 .PP
100 \fB\-R\fR, \fB\-\-restrict\fR
101 .RS 4
102 Restrict the access to the named
103 \fIgroup\fR\&. Only group members will be allowed to use
104 \fBnewgrp\fR
105 to join the named
106 \fIgroup\fR\&.
107 .RE
108 .PP
109 \fB\-A\fR, \fB\-\-administrators\fR \fIuser\fR,\&.\&.\&.
110 .RS 4
111 Set the list of administrative users\&.
112 .RE
113 .PP
114 \fB\-M\fR, \fB\-\-members\fR \fIuser\fR,\&.\&.\&.
115 .RS 4
116 Set the list of group members\&.
117 .RE
118 .SH "OSTRZEŻENIA"
119 .PP
120 This tool only operates on the
121 /etc/group
122 and /etc/gshadow files\&.
123 Thus you cannot change any NIS or LDAP group\&. This must be performed on the corresponding server\&.
124 .SH "CONFIGURATION"
125 .PP
126 The following configuration variables in
127 /etc/login\&.defs
128 change the behavior of this tool:
129 .PP
130 \fBENCRYPT_METHOD\fR (string)
131 .RS 4
132 This defines the system default encryption algorithm for encrypting passwords (if no algorithm are specified on the command line)\&.
133 .sp
134 It can take one of these values:
135 .sp
136 .RS 4
137 .ie n \{\
138 \h'-04'\(bu\h'+03'\c
139 .\}
140 .el \{\
141 .sp -1
142 .IP \(bu 2.3
143 .\}
144 \fIDES\fR
145 (default)
146 .RE
147 .sp
148 .RS 4
149 .ie n \{\
150 \h'-04'\(bu\h'+03'\c
151 .\}
152 .el \{\
153 .sp -1
154 .IP \(bu 2.3
155 .\}
156 \fIMD5\fR
157 .RE
158 .sp
159 .RS 4
160 .ie n \{\
161 \h'-04'\(bu\h'+03'\c
162 .\}
163 .el \{\
164 .sp -1
165 .IP \(bu 2.3
166 .\}
167 \fISHA256\fR
168 .RE
169 .sp
170 .RS 4
171 .ie n \{\
172 \h'-04'\(bu\h'+03'\c
173 .\}
174 .el \{\
175 .sp -1
176 .IP \(bu 2.3
177 .\}
178 \fISHA512\fR
179 .RE
180 .sp
181 Note: this parameter overrides the
182 \fBMD5_CRYPT_ENAB\fR
183 variable\&.
184 .RE
185 .PP
186 \fBMAX_MEMBERS_PER_GROUP\fR (number)
187 .RS 4
188 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
189 /etc/group
190 (with the same name, same password, and same GID)\&.
191 .sp
192 The default value is 0, meaning that there are no limits in the number of members in a group\&.
193 .sp
194 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\&.
195 .sp
196 If you need to enforce such limit, you can use 25\&.
197 .sp
198 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\&.
199 .RE
200 .PP
201 \fBMD5_CRYPT_ENAB\fR (boolean)
202 .RS 4
203 Indicate if passwords must be encrypted using the MD5\-based algorithm\&. If set to
204 \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
205 \fIno\fR
206 if you need to copy encrypted passwords to other systems which don\*(Aqt understand the new algorithm\&. Default is
207 \fIno\fR\&.
208 .sp
209 This variable is superceded by the
210 \fBENCRYPT_METHOD\fR
211 variable or by any command line option used to configure the encryption algorithm\&.
212 .sp
213 This variable is deprecated\&. You should use
214 \fBENCRYPT_METHOD\fR\&.
215 .RE
216 .PP
217 \fBSHA_CRYPT_MIN_ROUNDS\fR (number), \fBSHA_CRYPT_MAX_ROUNDS\fR (number)
218 .RS 4
219 When
220 \fBENCRYPT_METHOD\fR
221 is set to
222 \fISHA256\fR
223 or
224 \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)\&.
225 .sp
226 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\&.
227 .sp
228 If not specified, the libc will choose the default number of rounds (5000)\&.
229 .sp
230 The values must be inside the 1000\-999999999 range\&.
231 .sp
232 If only one of the
233 \fBSHA_CRYPT_MIN_ROUNDS\fR
234 or
235 \fBSHA_CRYPT_MAX_ROUNDS\fR
236 values is set, then this value will be used\&.
237 .sp
238 If
239 \fBSHA_CRYPT_MIN_ROUNDS\fR
240 >
241 \fBSHA_CRYPT_MAX_ROUNDS\fR, the highest value will be used\&.
242 .RE
243 .SH "PLIKI"
244 .PP
245 /etc/group
246 .RS 4
247 Informacje o grupach użytkownik\('ow\&.
248 .RE
249 .PP
250 /etc/gshadow
251 .RS 4
252 Informacje chronione o grupach użytkownik\('ow\&.
253 .RE
254 .SH "ZOBACZ TAKŻE"
255 .PP
256
257 \fBnewgrp\fR(1),
258 \fBgroupadd\fR(8),
259 \fBgroupdel\fR(8),
260 \fBgroupmod\fR(8),
261 \fBgrpck\fR(8),
262 \fBgroup\fR(5), \fBgshadow\fR(5)\&.