2007-10-07 19:46:16 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<refentry id='groupdel.8'>
|
2007-11-11 07:46:11 +08:00
|
|
|
<!-- $Id$ -->
|
2007-10-07 19:46:16 +08:00
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>groupdel</refentrytitle>
|
|
|
|
<manvolnum>8</manvolnum>
|
2007-10-07 19:47:11 +08:00
|
|
|
<refmiscinfo class="sectdesc">System Management Commands</refmiscinfo>
|
2007-10-07 19:46:16 +08:00
|
|
|
</refmeta>
|
|
|
|
<refnamediv id='name'>
|
|
|
|
<refname>groupdel</refname>
|
2007-10-07 19:47:33 +08:00
|
|
|
<refpurpose>delete a group</refpurpose>
|
2007-10-07 19:46:16 +08:00
|
|
|
</refnamediv>
|
|
|
|
<!-- body begins here -->
|
|
|
|
<refsynopsisdiv id='synopsis'>
|
|
|
|
<cmdsynopsis>
|
2007-10-07 19:47:01 +08:00
|
|
|
<command>groupdel</command>
|
2007-10-07 19:46:16 +08:00
|
|
|
<arg choice='plain'>
|
2007-10-07 19:47:01 +08:00
|
|
|
<replaceable>group</replaceable>
|
2007-10-07 19:46:16 +08:00
|
|
|
</arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
2007-10-07 19:47:01 +08:00
|
|
|
|
2007-10-07 19:46:16 +08:00
|
|
|
<refsect1 id='description'>
|
|
|
|
<title>DESCRIPTION</title>
|
|
|
|
<para> The <command>groupdel</command> command modifies the system
|
|
|
|
account files, deleting all entries that refer to <emphasis
|
|
|
|
remap='I'>group</emphasis>. The named group must exist.
|
|
|
|
</para>
|
2007-10-07 19:47:01 +08:00
|
|
|
|
2007-10-07 19:46:34 +08:00
|
|
|
<para>You must manually check all file systems to insure that no files
|
2007-10-07 19:46:16 +08:00
|
|
|
remain with the named group as the file group ID.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 19:47:01 +08:00
|
|
|
|
2007-10-07 19:46:16 +08:00
|
|
|
<refsect1 id='caveats'>
|
|
|
|
<title>CAVEATS</title>
|
|
|
|
<para>You may not remove the primary group of any existing user. You
|
|
|
|
must remove the user before you remove the group.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 19:47:01 +08:00
|
|
|
|
2007-10-07 19:46:16 +08:00
|
|
|
<refsect1 id='files'>
|
|
|
|
<title>FILES</title>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<term><filename>/etc/group</filename></term>
|
|
|
|
<listitem>
|
2007-10-07 19:47:33 +08:00
|
|
|
<para>Group account information.</para>
|
2007-10-07 19:47:01 +08:00
|
|
|
</listitem>
|
2007-10-07 19:46:16 +08:00
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<term><filename>/etc/gshadow</filename></term>
|
|
|
|
<listitem>
|
2007-10-07 19:47:33 +08:00
|
|
|
<para>Secure group account information.</para>
|
2007-10-07 19:47:01 +08:00
|
|
|
</listitem>
|
2007-10-07 19:46:16 +08:00
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
2007-10-07 19:46:25 +08:00
|
|
|
|
2007-10-07 19:46:16 +08:00
|
|
|
<refsect1 id='exit_values'>
|
|
|
|
<title>EXIT VALUES</title>
|
2007-10-07 19:46:25 +08:00
|
|
|
<para>
|
|
|
|
The <command>groupdel</command> command exits with the following values:
|
|
|
|
<variablelist>
|
2007-10-07 19:47:01 +08:00
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>0</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>success</para>
|
|
|
|
</listitem>
|
2007-10-07 19:46:25 +08:00
|
|
|
</varlistentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>2</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>invalid command syntax</para>
|
|
|
|
</listitem>
|
2007-10-07 19:46:25 +08:00
|
|
|
</varlistentry>
|
2007-10-07 22:36:51 +08:00
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>6</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>specified group doesn't exist</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>8</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>can't remove user's primary group</para>
|
|
|
|
</listitem>
|
2007-10-07 19:46:25 +08:00
|
|
|
</varlistentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>10</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>can't update group file</para>
|
|
|
|
</listitem>
|
2007-10-07 19:46:25 +08:00
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
2007-10-07 19:46:16 +08:00
|
|
|
</refsect1>
|
2007-10-07 19:47:01 +08:00
|
|
|
|
2007-10-07 19:46:16 +08:00
|
|
|
<refsect1 id='see_also'>
|
|
|
|
<title>SEE ALSO</title>
|
2007-10-07 19:46:25 +08:00
|
|
|
<para><citerefentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<refentrytitle>chfn</refentrytitle><manvolnum>1</manvolnum>
|
2007-10-07 19:46:16 +08:00
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<refentrytitle>chsh</refentrytitle><manvolnum>1</manvolnum>
|
2007-10-07 19:46:16 +08:00
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<refentrytitle>passwd</refentrytitle><manvolnum>1</manvolnum>
|
2007-10-07 19:46:16 +08:00
|
|
|
</citerefentry>,
|
2007-10-07 19:46:34 +08:00
|
|
|
<citerefentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<refentrytitle>gpasswd</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 19:46:34 +08:00
|
|
|
</citerefentry>,
|
2007-10-07 19:46:16 +08:00
|
|
|
<citerefentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<refentrytitle>groupadd</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 19:46:16 +08:00
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<refentrytitle>groupmod</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 19:46:16 +08:00
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<refentrytitle>useradd</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 19:46:16 +08:00
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<refentrytitle>userdel</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 19:46:16 +08:00
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 19:47:01 +08:00
|
|
|
<refentrytitle>usermod</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 19:46:16 +08:00
|
|
|
</citerefentry>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|