Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / ru / groupadd.8
1 '\" t
2 .\"     Title: groupadd
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: Команды управления системой
7 .\"    Source: Команды управления системой
8 .\"  Language: Russian
9 .\"
10 .TH "groupadd" "8" "02/16/2011" "Команды управления системой" "Команды управления системой"
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 "НАЗВАНИЕ"
31 groupadd \- создаёт новую группу
32 .SH "СИНТАКСИС"
33 .HP \w'\fBgroupadd\fR\ 'u
34 \fBgroupadd\fR [\fIпараметры\fR] \fIгруппа\fR
35 .SH "ОПИСАНИЕ"
36 .PP
37 The
38 \fBgroupadd\fR
39 command creates a new group account using the values specified on the command line plus the default values from the system\&. The new group will be entered into the system files as needed\&.
40 .SH "ПАРАМЕТРЫ"
41 .PP
42 Параметры команды
43 \fBgroupadd\fR:
44 .PP
45 \fB\-f\fR, \fB\-\-force\fR
46 .RS 4
47 This option causes the command to simply exit with success status if the specified group already exists\&. When used with
48 \fB\-g\fR, and the specified GID already exists, another (unique) GID is chosen (i\&.e\&.
49 \fB\-g\fR
50 is turned off)\&.
51 .RE
52 .PP
53 \fB\-g\fR, \fB\-\-gid\fR\fIGID\fR
54 .RS 4
55 Числовое значение идентификатора группы\&. Значение должно быть уникальным, если не задан параметр
56 \fB\-o\fR\&. Значение должно быть не отрицательным\&. По умолчанию, берётся значение больше 999 и больше идентификатора любой другой группы\&. Значения от 0 и до 999 обычно зарезервированы под системные группы\&.
57 .RE
58 .PP
59 \fB\-h\fR, \fB\-\-help\fR
60 .RS 4
61 Показать краткую справку и закончить работу\&.
62 .RE
63 .PP
64 \fB\-K\fR, \fB\-\-key\fR\fIКЛЮЧ\fR=\fIЗНАЧЕНИЕ\fR
65 .RS 4
66 Изменить значения по умолчанию (GID_MIN, GID_MAX и другие), которые хранятся в файле
67 /etc/login\&.defs\&. Можно указать несколько параметров
68 \fB\-K\fR\&.
69 .sp
70 Example:
71 \fB\-K \fR\fIGID_MIN\fR=\fI100\fR
72 \fB\-K \fR\fIGID_MAX\fR=\fI499\fR
73 .sp
74 Замечание: запись вида
75 \fB\-K \fR\fIGID_MIN\fR=\fI10\fR,\fIGID_MAX\fR=\fI499\fR
76 пока не работает\&.
77 .RE
78 .PP
79 \fB\-o\fR, \fB\-\-non\-unique\fR
80 .RS 4
81 This option permits to add a group with a non\-unique GID\&.
82 .RE
83 .PP
84 \fB\-p\fR, \fB\-\-password\fR\fIПАРОЛЬ\fR
85 .RS 4
86 The encrypted password, as returned by
87 \fBcrypt\fR(3)\&. The default is to disable the password\&.
88 .sp
89
90 \fBNote:\fR
91 This option is not recommended because the password (or encrypted password) will be visible by users listing the processes\&.
92 .sp
93 You should make sure the password respects the system\*(Aqs password policy\&.
94 .RE
95 .PP
96 \fB\-r\fR, \fB\-\-system\fR
97 .RS 4
98 Create a system group\&.
99 .sp
100 The numeric identifiers of new system groups are choosen in the
101 \fBSYS_GID_MIN\fR\-\fBSYS_GID_MAX\fR
102 range, defined in
103 login\&.defs, instead of
104 \fBGID_MIN\fR\-\fBGID_MAX\fR\&.
105 .RE
106 .SH "CONFIGURATION"
107 .PP
108 The following configuration variables in
109 /etc/login\&.defs
110 change the behavior of this tool:
111 .PP
112 \fBGID_MAX\fR (number), \fBGID_MIN\fR (number)
113 .RS 4
114 Range of group IDs used for the creation of regular groups by
115 \fBuseradd\fR,
116 \fBgroupadd\fR, or
117 \fBnewusers\fR\&.
118 .RE
119 .PP
120 \fBMAX_MEMBERS_PER_GROUP\fR (number)
121 .RS 4
122 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
123 /etc/group
124 (with the same name, same password, and same GID)\&.
125 .sp
126 The default value is 0, meaning that there are no limits in the number of members in a group\&.
127 .sp
128 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\&.
129 .sp
130 If you need to enforce such limit, you can use 25\&.
131 .sp
132 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 .RE
134 .PP
135 \fBSYS_GID_MAX\fR (number), \fBSYS_GID_MIN\fR (number)
136 .RS 4
137 Range of group IDs used for the creation of system groups by
138 \fBuseradd\fR,
139 \fBgroupadd\fR, or
140 \fBnewusers\fR\&.
141 .RE
142 .SH "ФАЙЛЫ"
143 .PP
144 /etc/group
145 .RS 4
146 содержит информацию о группах
147 .RE
148 .PP
149 /etc/gshadow
150 .RS 4
151 содержит защищаемую информацию о группах
152 .RE
153 .PP
154 /etc/login\&.defs
155 .RS 4
156 содержит конфигурацию подсистемы теневых паролей
157 .RE
158 .SH "ПРЕДОСТЕРЕЖЕНИЯ"
159 .PP
160 Groupnames must start with a lower case letter or an underscore, followed by lower case letters, digits, underscores, or dashes\&. They can end with a dollar sign\&. In regular expression terms: [a\-z_][a\-z0\-9_\-]*[$]?
161 .PP
162 Groupnames may only be up to characters long\&.
163 .PP
164 You may not add a NIS or LDAP group\&. This must be performed on the corresponding server\&.
165 .PP
166 If the groupname already exists in an external group database such as NIS or LDAP,
167 \fBgroupadd\fR
168 will deny the group creation request\&.
169 .SH "ВОЗВРАЩАЕМЫЕ ЗНАЧЕНИЯ"
170 .PP
171 Программа
172 \fBgroupadd\fR
173 завершая работу, возвращает следующие значения:
174 .PP
175 \fI0\fR
176 .RS 4
177 успешное выполнение
178 .RE
179 .PP
180 \fI2\fR
181 .RS 4
182 ошибка в параметрах команды
183 .RE
184 .PP
185 \fI3\fR
186 .RS 4
187 недопустимое значение параметра
188 .RE
189 .PP
190 \fI4\fR
191 .RS 4
192 не уникальный gid (если не задан параметр
193 \fB\-o\fR)
194 .RE
195 .PP
196 \fI9\fR
197 .RS 4
198 не уникальное имя группы
199 .RE
200 .PP
201 \fI10\fR
202 .RS 4
203 не удалось изменить файл групп
204 .RE
205 .SH "СМОТРИТЕ ТАКЖЕ"
206 .PP
207 \fBchfn\fR(1),
208 \fBchsh\fR(1),
209 \fBpasswd\fR(1),
210 \fBgpasswd\fR(8),
211 \fBgroupdel\fR(8),
212 \fBgroupmod\fR(8),
213 \fBlogin.defs\fR(5),
214 \fBuseradd\fR(8),
215 \fBuserdel\fR(8),
216 \fBusermod\fR(8)\&.