Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

groupdel(8) [osf1 man page]

groupdel(8)						      System Manager's Manual						       groupdel(8)

NAME
groupdel - Deletes a group definition from the system SYNOPSIS
/usr/sbin/groupdel [-P] [-x extended_option] group_name OPTIONS
Creates a PC group only. The following extended_option attributes are available: Indicates whether or not the group is distributed. The value of the distributed=n attribute can be 0 or 1. If set to 0, the group is deleted from the local system. If set to 1, the group is deleted from the NIS master database on the running system. Indicates whether or not the group is local. The value of the local=n attribute can be 0 or 1. If set to 1, the group is deleted from the local database. If set to 0, the group is deleted from the NIS master database. Specifies the name of the group to be deleted from the system. The groupname must exist. DESCRIPTION
The groupdel command lets the system administrator delete existing groups from the system, by group name. In addition, the system adminis- trator can use the -x option to specify whether the group to be deleted is local or whether the group resides in the NIS master database. If the -x option is not specified, the group is deleted from the appropriate database as specified by the system defaults. The default behavior on the system for the groupdel command is distributed=0 and local=1. With these values, the system deletes the group from the local database by default. Setting the distributed= and local= attributes to the same value (for example, distributed=0 and local=0) produces an error. When the Advanced Server for UNIX (ASU) is running, you can also delete PC groups consisting of members who are holders of Windows NT domain accounts. You must have superuser privilege to execute this command. EXIT STATUS
The groupmod command exits with one of the following values: Success. Failure. Warning. EXAMPLES
The following example removes the group, testgrp: % groupdel testgrp The following example removes the group, testgrp, from the local group database: % groupdel -x local=1 testgrp The following example removes the PC users group, domainbdev, from the local group database: % groupdel -P domainbdev FILES
The groupdel command operates on the appropriate files for the specific level of system security. SEE ALSO
Commands: groupadd(8), groupmod(8), useradd(8), userdel(8), usermod(8) System Administration Security groupdel(8)

Check Out this Related Man Page

groupmod(1M)                                              System Administration Commands                                              groupmod(1M)

NAME
groupmod - modify a group definition on the system SYNOPSIS
/usr/sbin/groupmod [ -g gid [-o]] [-n name] group DESCRIPTION
The groupmod command modifies the definition of the specified group by modifying the appropriate entry in the /etc/group file. OPTIONS
The following options are supported: -g gid Specify the new group ID for the group. This group ID must be a non-negative decimal integer less than MAXUID, as defined in <param.h>. The group ID defaults to the next available (unique) number above 99. (Group IDs from 0-99 are reserved by SunOS for future applications.) -n name Specify the new name for the group. The name argument is a string of no more than eight bytes consisting of characters from the set of lower case alphabetic characters and numeric characters. A warning message will be written if these restrictions are not met. A future Solaris release may refuse to accept group fields that do not meet these requirements. The name argument must contain at least one character and must not include a colon (:) or NEWLINE ( ). -o Allow the gid to be duplicated (non-unique). OPERANDS
The following operands are supported: group An existing group name to be modified. EXIT STATUS
The groupmod utility exits with one of the following values: 0 Success. 2 Invalid command syntax. A usage message for the groupmod command is displayed. 3 An invalid argument was provided to an option. 4 gid is not unique (when the -o option is not used). 6 group does not exist. 9 name already exists as a group name. 10 Cannot update the /etc/group file. FILES
/etc/group group file ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
users(1B), groupadd(1M), groupdel(1M), logins(1M), useradd(1M), userdel(1M), usermod(1M), group(4), attributes(5) NOTES
The groupmod utility only modifies group definitions in the /etc/group file. If a network name service such as NIS or NIS+ is being used to supplement the local /etc/group file with additional entries, groupmod cannot change information supplied by the network name service. The groupmod utility will, however, verify the uniqueness of group name and group ID against the external name service. SunOS 5.10 5 Dec 1995 groupmod(1M)
Man Page