Hello friends welcome back in this lesson we're going to talk about group management in Linux in our
previous lesson we learn how to manage users and their password in this lesson.
We're going to talk about the group management group management is a way of managing different user
accounts.
OK.
So this will be very helpful for an administrator who manages the users.
You can set up particular priorities or you can also set up some file permissions from particular users
and you can add them a particular group click.
Let's understand this Witan basic example.
Suppose you are an administrator of that school.
And inside the school there are different categories of students means some student belong to physics
groups some students belong to chemistry group.
Some students belongs to biologic group.
OK.
So you can manage these students by creating the groups with the name biology physics and chemistry
and add that students to live in groups.
Ok this will be very easy for an administrator who manages the students.
You can restrict the students from accessing some resources on your system.
So how to restrict a particular resource that we can or talk about in an upcoming lesson.
But for now just understand we're going to learn only how to create a group how to modify them and how
to deliver them.
OK.
Inside this lesson.
So let's see practically How good is.
So to create a new group there is a common group and so was pseudo.
And suppose I want to create a group.
Felix Guenter Now the group is created.
You can also set up a group ID with option.
Hi Nancy.
OK.
And suppose I want to give you an ID want to read.
And so now it says that on group is already exist so then the group name chemistry.
Now our group chemistry is created.
OK.
Good idea one before.
And also you can create this esteemed group.
OK.
So to create a system group you need to provide option Hypponen are key.
So let's create a system.
Biologic
and heat and we know we have created three different groups with physics chemistry and biology.
So how do you view these groups.
So I'm going to show you directly where these groups group names are stored.
So let's get inside BTC and group look at this file which is present inside the EDC folder contains
all the information about the group like group name is ID.
So hit enter.
Now here you can see in the three groups that we have added are entered inside this file like physics
Hoving group ID 1 0 1 7 chemistry's having the ID that we said next is 1 2 3 4 and biology's having
the group id 9 9 7.
So what is the difference in between the normal group and the system group that we have created with
the name biology.
So the difference is that you can set the group ID from 0 to 9 9 9 sistem group get and because these
numbers are stored for sistem groups only and about 1000.
All the group ids are applied to any group that you created which are non-test in groups so they knew
what new users created by default on the name of his name your primary group.
OK.
So let's type.
And here you can see the user name here is Prashant and with the name Prashant here a primary group
is automatically created.
OK.
After adding the group let me show you how to modify the group so to modify the group there is a come
on group more than you need proof of.
And here you need to add a new name.
Suppose I want to go into physics physics and here the old name is physics.
Hit enter.
Now let's get inside the file.
OK and here you can see the physics name is changed to physics one.
Get in this way you can modify the group name or you can modify the group ID here by providing the switch
hyphen G.
So here I want to modify the group ID to one tree of physics one who get hit enter.
Now it's called the fly.
And here you can see the group by this change to 2 to 1 3.
OK in this way you can modify the group name and the group ID with the help of group more common.
Now of the more inflamed the groups I show you how good reading the groups is so simple to remove the
groups.
This need to pro-white them on gal and the group name is X1 so we misspelled here the physics.
So here it enter.
And now we get inside the file.
Pseudo.
It is the group and here you can see the physics group is removed from this vine.
In this way you can add a group you can modify and you can delete them.
OK.
With the help of these come ons there are some important files I want to show you here.
Inside this is the folder.
So was in the first file I already show you that is group OK which stores all information about a group
like group name and the group.
Very important information.
Then after that there is a file for stability.
OK.
So this file stores the information about the usernames and the user ID.
OK.
Here you can see at the bottom these are the user names and that were added by me.
So after this file there is another important file that is Shanno.
So this schürrle file contains the possible information about all the users in the encrypted format.
Here you can see the Student 1 and some exam.
And Zahm one key is showing us the format in the format of the password.
And after this there is another important file.
This file contains information about the crooks get the shared information about the groups.
So these are some of the important files which are very helpful for you because if some wrong users
get information about these files and if you copied these files then he can easily decrypt the password
and he can get access to your system OK.
He can easily misuse your resources or he can hum to a system for it.
So you need to protect these files.
OK.
So how to protect these files or hope to set up restrictions.
We're going to learn about it in the upcoming lessons.