xref: /illumos-gate/usr/src/man/man8/groupdel.8 (revision c4140c56306ad2a74081dd949618b4f3162dd06b)
te
Copyright 1989 AT&T Copyright (c) 1997, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
GROUPDEL 8 "Jan 7, 2018"
NAME
groupdel - delete a group definition from the system
SYNOPSIS

/usr/sbin/groupdel group
DESCRIPTION

The groupdel utility deletes a group definition from the system. It deletes the appropriate entry from the /etc/group file.

OPERANDS
group

An existing group name to be deleted.

EXIT STATUS

The following exit values are returned: 0

Success.

2

Invalid command syntax. A usage message for the groupdel command is displayed.

6

group does not exist.

10

Cannot update the /etc/group file.

FILES
/etc/group

system file containing group definitions

SEE ALSO

attributes (7), groupadd (8), groupmod (8), logins (8), useradd (8), userdel (8), usermod (8)

NOTES

The groupdel utility only deletes a group definition that is in the local /etc/group file. If a network nameservice is being used to supplement the local /etc/group file with additional entries, groupdel cannot change information supplied by the network nameservice.

groupdel fails if a group entry (a single line in /etc/group) exceeds 2047 characters.