1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 1991 - 1993, Julianne Frances Haugh
4 Copyright (c) 2007 - 2008, 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='groupdel.8'>
36 <!-- $Id: groupdel.8.xml 2947 2009-05-19 20:31:45Z nekral-guest $ -->
38 <refentrytitle>groupdel</refentrytitle>
39 <manvolnum>8</manvolnum>
40 <refmiscinfo class="sectdesc">System Management Commands</refmiscinfo>
42 <refnamediv id='name'>
43 <refname>groupdel</refname>
44 <refpurpose>delete a group</refpurpose>
46 <!-- body begins here -->
47 <refsynopsisdiv id='synopsis'>
49 <command>groupdel</command>
51 <replaceable>group</replaceable>
56 <refsect1 id='description'>
57 <title>DESCRIPTION</title>
58 <para> The <command>groupdel</command> command modifies the system
59 account files, deleting all entries that refer to <emphasis
60 remap='I'>group</emphasis>. The named group must exist.
64 <refsect1 id='caveats'>
65 <title>CAVEATS</title>
67 You may not remove the primary group of any existing user. You
68 must remove the user before you remove the group.
71 You should manually check all file systems to ensure that no files
72 remain owned by this group.
76 <refsect1 id='configuration'>
77 <title>CONFIGURATION</title>
79 The following configuration variables in
80 <filename>/etc/login.defs</filename> change the behavior of this
84 &MAX_MEMBERS_PER_GROUP;
92 <term><filename>/etc/group</filename></term>
94 <para>Group account information.</para>
97 <varlistentry condition="gshadow">
98 <term><filename>/etc/gshadow</filename></term>
100 <para>Secure group account information.</para>
106 <refsect1 id='exit_values'>
107 <title>EXIT VALUES</title>
109 The <command>groupdel</command> command exits with the following values:
112 <term><replaceable>0</replaceable></term>
118 <term><replaceable>2</replaceable></term>
120 <para>invalid command syntax</para>
124 <term><replaceable>6</replaceable></term>
126 <para>specified group doesn't exist</para>
130 <term><replaceable>8</replaceable></term>
132 <para>can't remove user's primary group</para>
136 <term><replaceable>10</replaceable></term>
138 <para>can't update group file</para>
145 <refsect1 id='see_also'>
146 <title>SEE ALSO</title>
148 <refentrytitle>chfn</refentrytitle><manvolnum>1</manvolnum>
151 <refentrytitle>chsh</refentrytitle><manvolnum>1</manvolnum>
154 <refentrytitle>passwd</refentrytitle><manvolnum>1</manvolnum>
157 <refentrytitle>gpasswd</refentrytitle><manvolnum>8</manvolnum>
160 <refentrytitle>groupadd</refentrytitle><manvolnum>8</manvolnum>
163 <refentrytitle>groupmod</refentrytitle><manvolnum>8</manvolnum>
166 <refentrytitle>useradd</refentrytitle><manvolnum>8</manvolnum>
169 <refentrytitle>userdel</refentrytitle><manvolnum>8</manvolnum>
172 <refentrytitle>usermod</refentrytitle><manvolnum>8</manvolnum>