1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 1991 , Julianne Frances Haugh
4 Copyright (c) 2007 - 2009, Nicolas François
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions
10 1. Redistributions of source code must retain the above copyright
11 notice, this list of conditions and the following disclaimer.
12 2. Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15 3. The name of the copyright holders or contributors may not be used to
16 endorse or promote products derived from this software without
17 specific prior written permission.
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
32 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
33 <!ENTITY MAX_MEMBERS_PER_GROUP SYSTEM "login.defs.d/MAX_MEMBERS_PER_GROUP.xml">
35 <refentry id='groupmod.8'>
36 <!-- $Id: groupmod.8.xml 2952 2009-05-19 22:00:14Z nekral-guest $ -->
38 <refentrytitle>groupmod</refentrytitle>
39 <manvolnum>8</manvolnum>
40 <refmiscinfo class="sectdesc">System Management Commands</refmiscinfo>
42 <refnamediv id='name'>
43 <refname>groupmod</refname>
44 <refpurpose>modify a group definition on the system</refpurpose>
46 <!-- body begins here -->
47 <refsynopsisdiv id='synopsis'>
49 <command>groupmod</command>
51 <replaceable>options</replaceable>
53 <arg choice='plain'><replaceable>GROUP</replaceable></arg>
57 <refsect1 id='description'>
58 <title>DESCRIPTION</title>
60 The <command>groupmod</command> command modifies the definition of the
61 specified <replaceable>GROUP</replaceable> by modifying the appropriate
62 entry in the group database.
66 <refsect1 id='options'>
67 <title>OPTIONS</title>
69 The options which apply to the <command>groupmod</command> command
72 <variablelist remap='IP'>
75 <option>-g</option>, <option>--gid</option> <replaceable>GID</replaceable>
79 The group ID of the given <replaceable>GROUP</replaceable> will
80 be changed to <replaceable>GID</replaceable>.
84 <replaceable>GID</replaceable> must be a non-negative decimal
85 integer. This value must be unique, unless the
86 <option>-o</option> option is used. Values between 0 and 999 are
87 typically reserved for system groups.
90 Any files that have the
91 old group ID and must continue to belong to
92 <replaceable>GROUP</replaceable>, must have their group ID
98 <term><option>-h</option>, <option>--help</option></term>
100 <para>Display help message and exit.</para>
105 <option>-n</option>, <option>--new-name</option>
106 <replaceable>NEW_GROUP</replaceable>
110 The name of the group will be changed from <replaceable>GROUP</replaceable>
111 to <replaceable>NEW_GROUP</replaceable> name.
117 <option>-o</option>, <option>--non-unique</option>
121 When used with the <option>-g</option> option, allow to change the
122 group <replaceable>GID</replaceable> to a non-unique value.
128 <option>-p</option>, <option>--password</option>
129 <replaceable>PASSWORD</replaceable>
133 The encrypted password, as returned by <citerefentry>
134 <refentrytitle>crypt</refentrytitle><manvolnum>3</manvolnum>
138 <emphasis role="bold">Note:</emphasis> This option is not
139 recommended because the password (or encrypted password) will
140 be visible by users listing the processes.
143 You should make sure the password respects the system's
151 <refsect1 id='configuration'>
152 <title>CONFIGURATION</title>
154 The following configuration variables in
155 <filename>/etc/login.defs</filename> change the behavior of this
159 &MAX_MEMBERS_PER_GROUP;
163 <refsect1 id='files'>
167 <term><filename>/etc/group</filename></term>
169 <para>Group account information.</para>
172 <varlistentry condition="gshadow">
173 <term><filename>/etc/gshadow</filename></term>
175 <para>Secure group account information.</para>
181 <refsect1 id='exit_values'>
182 <title>EXIT VALUES</title>
184 The <command>groupmod</command> command exits with the following values:
187 <term><replaceable>0</replaceable></term>
193 <term><replaceable>2</replaceable></term>
195 <para>invalid command syntax</para>
199 <term><replaceable>3</replaceable></term>
201 <para>invalid argument to option</para>
205 <term><replaceable>4</replaceable></term>
207 <para>specified group doesn't exist</para>
211 <term><replaceable>6</replaceable></term>
213 <para>specified group doesn't exist</para>
217 <term><replaceable>9</replaceable></term>
219 <para>group name already in use</para>
223 <term><replaceable>10</replaceable></term>
225 <para>can't update group file</para>
232 <refsect1 id='see_also'>
233 <title>SEE ALSO</title>
236 <refentrytitle>chfn</refentrytitle><manvolnum>1</manvolnum>
239 <refentrytitle>chsh</refentrytitle><manvolnum>1</manvolnum>
242 <refentrytitle>passwd</refentrytitle><manvolnum>1</manvolnum>
245 <refentrytitle>gpasswd</refentrytitle><manvolnum>8</manvolnum>
248 <refentrytitle>groupadd</refentrytitle><manvolnum>8</manvolnum>
251 <refentrytitle>groupdel</refentrytitle><manvolnum>8</manvolnum>
254 <refentrytitle>useradd</refentrytitle><manvolnum>8</manvolnum>
257 <refentrytitle>userdel</refentrytitle><manvolnum>8</manvolnum>
260 <refentrytitle>usermod</refentrytitle><manvolnum>8</manvolnum>