Pre-requisites to Add a User to a Group in Linux
- A linux machine with root/sudo access.
- Basic understanding of Linux terminal.
- Understanding of useradd and usermod command.
How to Add User to a Group in Linux
A group in Linux is a way to put users with similar access and permissions in a collection. By using groups, an administrator can define access control and permissions for all the users belonging to that group. Without groups, the administrator would have to define roles for individual users however, with groups those roles can be given to a group which in turn, will apply to all the users in the group.
In this article, we shall learn how to add a user to a group. We shall see different methods to do the same.
Table of Content
- What is Linux Group?
- Pre-requisites to Add a User to a Group in Linux
- How to Add User to a Group in Linux while creating the user.
- How to Add User to a Group in Linux Which Already exist.
- Frequesty Asked Questions