

Please note that no characters will show as you type your password. The sudo command will now prompt you to enter the password for your administrator account. When you have typed in the command, press the Enter key to execute the command. This screenshot demonstrates what you will see. Now that we're logged in, we can remove the group with a Group Name of professors by entering the following groupdel command: sudo groupdel professors

In this tutorial, we have logged in as techonthenet on the host called ubuntu.

If you are unsure of how to do this, read our tutorial on Logging into Ubuntu Linux Server 16.04 LTS. To remove an existing group from your system, you will need to be logged in using a valid user account. Do NOT remove a group from a system unless you are sure it is not needed! IMPORTANT: Certain pre-installed groups are required for the system to operate properly. The following steps will guide you through removing a group on an Ubuntu Linux Server 16.04 LTS system. The sudo command is used to provide the superuser privileges required for the groupdel command. To complete this tutorial you will require a running Ubuntu Linux Server 16.04 LTS system and an account with sudo administrative privileges. Group names should be entered in lowercase and may contain underscores. The groupdel command requires the following parameter: Group_Name The name of the group you would like to remove. The syntax for the groupdel command is: groupdel Group_Name Parameters or Arguments To remove a group, you will use the groupdel command. It is sometimes necessary to remove a group from a system when it is no longer needed.īefore a group can be removed, any users assigned to the group should be reassigned to another group. Groups allow system administrators to apply certain permissions or access to groups of users. In this Linux system administration tutorial you will learn how to remove a group on an Ubuntu Linux Server 16.04 LTS (Xenial Xerus) system with screenshots and instructions. Linux: How to Remove a Group in Ubuntu Linux Server 16.04 LTS
