This tutorial explains Linux “groupdel” command, options and its usage with examples.
Description :
The groupdel command modifies the system account files, deleting all entries that refer to group. The named group must exist.
You must manually check all filesystems to insure that no files remain with the named group as the file group ID.
Usage :
groupdel group
The following configuration variable, located in /etc/login.defs, changes the behavior of groupdel:
MAX_MEMBERS_PER_GROUP (number)
Maximum members per group entry. When the maximum is reached, a new group entry (line) is started in /etc/group (with the same name, same password, and same GID). The default value is 0, meaning that there are no limits in the number of members in a group.
Example :
1. Basic Usage
The following command deletes group called abc
# groupdel newgroup
Sanfoundry Global Education & Learning Series – 1000 Linux Tutorials.
- Check Information Technology Books
- Check Linux Books
- Practice Programming MCQs
- Apply for Programming Internship