man pages section 1M: System Administration Commands

Exit Print View

Updated: July 2014
 
 

groupdel(1M)

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(4).

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(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os

See also

users(1B), groupadd(1M), groupmod(1M), logins(1M), useradd(1M), userdel(1M), usermod(1M), nsswitch.conf(4), attributes(5)

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.