Delete A Group from CentOS / Red Hat / Fedora / Ubuntu and Scientific Linux

To remove a group from the system ,you use the ‘ groupdel ‘ command as a root.

The syntax for groupdel command as shown below

groupdel [options] GROUP_NAME

When we run ‘groupdel’ command on shell prompt these files are used and affected.

 /etc/group                                             Group account information.
/etc/gshadow                                        Secure group account information.

To delete a group From the system:

[root@localhost ~]# cat /etc/group | grep dev_admin

[root@localhost ~]# groupdel dev_admin

[root@localhost ~]# cat /etc/group | grep dev_admin
[root@localhost ~]#

Below are the options which can be used with  the ‘groupdel’ command.


                Options:                                         Description


  -h, –help                                        display this help message and exit

  -R, –root CHROOT_DIR              directory to chroot into


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s