3 .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4 .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
6 .\" Manual: Команды управления системой
7 .\" Source: Команды управления системой
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 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 groupadd \- создаёт новую группу
33 .HP \w'\fBgroupadd\fR\ 'u
34 \fBgroupadd\fR [\fIпараметры\fR] \fIгруппа\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\&.
45 \fB\-f\fR, \fB\-\-force\fR
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\&.
53 \fB\-g\fR, \fB\-\-gid\fR\fIGID\fR
55 Числовое значение идентификатора группы\&. Значение должно быть уникальным, если не задан параметр
56 \fB\-o\fR\&. Значение должно быть не отрицательным\&. По умолчанию, берётся значение больше 999 и больше идентификатора любой другой группы\&. Значения от 0 и до 999 обычно зарезервированы под системные группы\&.
59 \fB\-h\fR, \fB\-\-help\fR
61 Показать краткую справку и закончить работу\&.
64 \fB\-K\fR, \fB\-\-key\fR\fIКЛЮЧ\fR=\fIЗНАЧЕНИЕ\fR
66 Изменить значения по умолчанию (GID_MIN, GID_MAX и другие), которые хранятся в файле
67 /etc/login\&.defs\&. Можно указать несколько параметров
71 \fB\-K \fR\fIGID_MIN\fR=\fI100\fR
72 \fB\-K \fR\fIGID_MAX\fR=\fI499\fR
74 Замечание: запись вида
75 \fB\-K \fR\fIGID_MIN\fR=\fI10\fR,\fIGID_MAX\fR=\fI499\fR
79 \fB\-o\fR, \fB\-\-non\-unique\fR
81 This option permits to add a group with a non\-unique GID\&.
84 \fB\-p\fR, \fB\-\-password\fR\fIПАРОЛЬ\fR
86 The encrypted password, as returned by
87 \fBcrypt\fR(3)\&. The default is to disable the password\&.
91 This option is not recommended because the password (or encrypted password) will be visible by users listing the processes\&.
93 You should make sure the password respects the system\*(Aqs password policy\&.
96 \fB\-r\fR, \fB\-\-system\fR
98 Create a system group\&.
100 The numeric identifiers of new system groups are choosen in the
101 \fBSYS_GID_MIN\fR\-\fBSYS_GID_MAX\fR
103 login\&.defs, instead of
104 \fBGID_MIN\fR\-\fBGID_MAX\fR\&.
108 The following configuration variables in
110 change the behavior of this tool:
112 \fBGID_MAX\fR (number), \fBGID_MIN\fR (number)
114 Range of group IDs used for the creation of regular groups by
120 \fBMAX_MEMBERS_PER_GROUP\fR (number)
122 Maximum members per group entry\&. When the maximum is reached, a new group entry (line) is started in
124 (with the same name, same password, and same GID)\&.
126 The default value is 0, meaning that there are no limits in the number of members in a group\&.
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\&.
130 If you need to enforce such limit, you can use 25\&.
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\&.
135 \fBSYS_GID_MAX\fR (number), \fBSYS_GID_MIN\fR (number)
137 Range of group IDs used for the creation of system groups by
146 содержит информацию о группах
151 содержит защищаемую информацию о группах
156 содержит конфигурацию подсистемы теневых паролей
158 .SH "ПРЕДОСТЕРЕЖЕНИЯ"
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_\-]*[$]?
162 Groupnames may only be up to characters long\&.
164 You may not add a NIS or LDAP group\&. This must be performed on the corresponding server\&.
166 If the groupname already exists in an external group database such as NIS or LDAP,
168 will deny the group creation request\&.
169 .SH "ВОЗВРАЩАЕМЫЕ ЗНАЧЕНИЯ"
173 завершая работу, возвращает следующие значения:
182 ошибка в параметрах команды
187 недопустимое значение параметра
192 не уникальный gid (если не задан параметр
198 не уникальное имя группы
203 не удалось изменить файл групп