Go to main content

man pages section 8: System Administration Commands

Exit Print View

Updated: Thursday, June 13, 2019
 
 

groupdel(8)

Name

groupdel - delete a group definition from the system

Synopsis

/usr/sbin/groupdel [-S repository] group

Description

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

In addition to solaris.group.manage authorization, an administrator must have either solaris.group.assign or a matching authorization of the form solaris.group.assign/groupname to delete a group. The authorization solaris.group.assign/groupname is automatically assigned to the administrator who created the group.

Options

groupdel supports the following option.

–S repository

The valid repositories are files and ldap. The repository specifies which name service will be updated. When repository is not specified, groupdel consults nsswitch.conf(5).

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

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

See Also

nsswitch.conf(5), attributes(7), groupadd(8), groupmod(8), logins(8), useradd(8), userdel(8), usermod(8)

Notes

The groupdel utility deletes a group definition that is in the group database in the repository.

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