Elephants will welcome back.
Welcome to another important section of discourse series.
OK.
In this whole section we're going to talk about the use and management.
OK so group managed.
So how to sort of file permission.
And a lot of things that we're going to learn in this whole section but in this lesson we're going to
talk about the user management.
So in this lesson I would like to show you how to use or how to delete the user and how to modify the
user.
And you also learn how to lock user accounts how to unlock them or how to set up the expiry date for
the user accounts.
OK.
So let's see practically how Google does so first of all to show you how to add the user or how to create
the user created user.
There are two commands in the Linux that these user add and add user.
So the basic difference is that when you use the user then it will see you on the information like full
name your phone number like that things are good.
Step by step and when you're using user come on you need to provide information with the help of sutures.
OK.
So let's see how to create a user with user add.
Come on.
So Grito or user Uniden Suro or administrator privilege.
OK so sudo is right here.
You need to provide the user name that you want to create.
I want to create the users to you know here the user created ogee to view the user status.
You can use a command change funnel an end user name.
Permission denied.
Sudo.
And here you can see our user get created here you can see the date when the user is created.
So our users get credit.
But here you need to set up a password for this user.
OK.
Because when you are trying to switch the user like this make switch user come on and it will ask you
for the password and you did not set any password for this user.
So when you're trying to hit with blank password then here you can see it says authentication fail.
So that means here you need to set up a password so to set up the password.
You need to sudo.
And here's the common possibility.
OK.
And the user name is still here.
I asked for the password.
You need to provide the same password twice.
And here it says password updated.
So now the user Steve until you asked for.
OK.
Now here we log in at Steve.
OK.
In this film you can add the user with the help of user add.
Come on over here.
There is one problem.
So what is that problem.
So just log in to home directly here.
Yes.
And here you can see there is no home directory created for us to here only the home directly present
for Prashanth.
So what do you create the home directory for this user.
There are three ways to create the home directory.
The first one is just create the directory with KTAR here.
And of creating the directory with the name Stew.
You need to get into BTC here inside this.
Here you can see the folder Askia evil and you need to copy all the files from this directly to the
folder that you created in the home directory.
The second way to create the home directories you need to provide the option for him while adding the
user.
It will automatically create the home directory for the user of the before creating it.
OK so the user is already created.
So Hoku create the directory for it give us the four it from the CD.
And here you just need to provide a common hole or underscore for the user so you now just get inside
the home.
And here we can see the home directory is created for you.
OK.
You can get inside Steve Ellis cookie.
And now if you show all the hidden files here get in this way you can create the home directory.
OK.
After creating a user.
And if you want to create the home directory while adding the user you can directly at the option I
am.
OK so suppose I want to create a user window.
You have to one.
OK.
And I want to create a home directory for him so just provide hope for them and he dander.
Now let's get inside the home palace and here again see city one home directories get triggered here.
OK.
Do you live with them.
Option for this whole phantom switch in this way you can create a home directory while adding the user
or after having the user name.
So after setting up password and creating home directory the next thing that I would like to show you
is of had the full name for the user.
So you add the full name.
There is a switch I fancy.
OK.
So of all hyphens see here Roy the name Jobs.
Steve Jobs is my favorite So that's why I'm getting Steve Jobs user.
So this will add new users to you to the full name Steve Jobs.
And he didn't get no new user is valid.
So just Qs.
And Steve you know and here you can see the status of still too.
So the full name is added here.
So how do they stack or how to see that to see that you need to use the common finger the finger Kamani
is not present in this environment.
You need to install it.
So first you need to use sudo to get install and think OK I already installed it on this machine.
So use come on like this finger and the user name.
So still do.
And here you can see the user information that is the log in name its home directory and its cell and
also its full name and get here the stooge OP's name is present that we added with the help of I see
no of but adding the full name.
Let me show you how to set up an expiry date for the user.
So to set up an expiry date you need to use the option 1.
OK.
And of that hyphen you need to provide the month and day and the year I want.
Clearly Steve 3 will get this food set up an expiry date for the user accounts D-3 and now you can
still be know here you can see the expiry date for the user.
OK.
The first line shows the creator.
And the next line shows us the expiry date.
OK.
This also shows us the information that is minimum number of days which could possible change the maximum
number of days between possible change and number of days of warning before password expired.
And a lot of things when you're going to learn about these things in detail in the next lesson.
But for now remember we can set up an expiry date like this.
OK.
Now of course setting up the expiry date I want to explain something about user IDs or the groups.
OK.
So with I come on here you can list various ideas about the user that are present on your system.
OK.
Now this is showing us the idea about depression.
Now when I type the user name this is showing us the ID or group information about still one.
You can also see about still do.
So what is user id user ID is user by the server who identified the users.
OK.
We identify a user on the server with the help of name like Stu wants to do our present get but our
server don't understand it with the help of name they identify a user base it on their user IDs.
So in the Linux environment there are about 16 bids are available for creating the user accounts.
OK.
And set up their IDs so you can set up the user id from zero to sixty five thousand five hundred thirty
five.
OK.
And if you're crossing this limit then you need to use the directory so what like open ended up and
they use it id zero as a reserve for the account.
OK.
So you can set up a user ID for the user while creating it like here just need to provide the option
for you and I need to provide the user id like 1000 or more.
You can set up the user IDs starting from zero to sixty five thousand five hundred thirty five gates.
You can set up any number but the zero number is reserved for google.com.
So you can set up the user id with it for you.
I'm not going to out here in a user id guess.
I just want to show you and you can also set up the group Id be too high for me.
So you can list the groups that are available with help of groups come on.
So there are different groups Prashant the CD-ROM pseudo the IP block they are.
These are the groups that are present in this system right now.
So you can add the users to these groups while creating it.
Suppose I want to add the user to the group.
OK.
Suppose the group is a let's see OK and I want to the next user Steve for it.
So you know to write down the command like this with which capital G.
Now bodies that is added to the group Alex.
So possibly still for
OK now switch user still for
now we are again as before.
And here you can list the groups.
And here you can see the user still for is not become the member of staff for a group and also the LSD
group.
So now we have created lots of users here.
So the last point that I would like to show here is how to set up a shell for a particular user.
You can set up a particular shell or you can add a particular shell to the user while trading it.
So there are differentials and that are supported in the Linux environment.
You can see on your computer screen the kinds of shows that are supported in this Linux environment
or you can also disable for a particular user shell access because not all users are required to access
because if someone is having cell access then that users get messed up with you or fines you can modify
your voice or began so damaged your files.
So you can't restrict access to the cell with the help of this technique.
So how to do this just provide the option like this pseudo user and unit deployed Ifan as and with hyphenates
you can set up a different shell to get all of us to follow.
Let's see here Piers.
And here you can see here it shows us the bash versus the shell for the use recompression.
So I want to go to the next few that use the rag.
Yes.
OK.
I found this and I want to set up a shell for him.
That is when SH SH And then the user name is still fine.
Now to possibly five
organs.
Now user Steve file and get your password.
And here you can see when I log in as I do for you I got a different cell.
OK.
Exit the system is still fine.
OK.
Now here we can see you got a different shell.
In this way you can insert different cells.
The users know of doing all these things with this user and.
Come on.
I would like to show you how to use the user more.
Come on with user mode come on you can modify various things about the user so to modify the user just
type single user mode.
And here you need to provide the user name.
But here you need to provide the option that you want to modify.
So what I want to modify the full name for the user.
It's still three days left for Google now stoop to having full name so commodified just pro-white pseudo
user mode.
See here roared name pressure and here user name stewe to get your boss for now.
Let's go to.
And here you can see the name is modify and this way you can use the user more c'mon modify various
things you can modify user shell you can modify the user name or you can do a lot of things with various
options.
You can just see man and the more it shows you all the things that you can do with the help of these
on is the long tail here.
So I want to show you here are some of the important things that you can do.
You can modify the shell with the help of option I guess.
OK let's modify the shill for Stu 6.
OK.
So now here you are more skips x.
OK.
Now switch user still 6 Sulu possibly still 6.
Ok now switch user Steve 6
Get know we modified the shell for users to use X and we got a differential.
OK.
Now let's see how to ban or restrict special access for end user fields.
No.
All right.
Go switch Steve 6.
We only unable to log in at still 6.
The next thing is the whole issue of how logged on the user.
You can log on these records and we Typhon hell and you need to point the user name.
I want to slow down still one
I love it down and just switch user first log of
trying to log in to one.
It shows log an incorrect
after this here or I'll find you this will unlock the user.
Here it shows us the message unlocking the user password Grizzard or less outcome.
So after unlocking it you could pull away or you need to set up a password for it.
So Sudol pasta MDC-T one for password log of one into your password.
OK.
Now the logging is still one.
This Wii you can modify the user accounts.
You can log them.
You can unlock them or get with the help of a user more money and you can do lot of things if you want
to learn in depth.
You can use man and use are more common to see the details.
OK.
So the last thing here to show you is how good delete the user accounts.
So for that let me log in again.
OK.
On the inside hole ls and here you can see these are the users that we have created better having home
directories.
OK.
There are lots of users that we created.
That is from Stu who won still 6 so who are these users you need to Cloward wide user.
The user name.
So you get less in here you can see the users you get to work and the home directories still present
here.
So if you want to delete the user with this home directory unit deployed switch iPhone or OK we it already
so point option 1 less.
And here you can see still one home directory is get deleted.
And if you want to remove this directory that is to you need to be a user Arkwright with him.
Steam no less.
You can see still directly he's get deleted.
It this way you can delete all the users with the help of user they'll come on or you can modify Wikis
are more common and also you can add them with user add.
Come on.
OK.
So.
OK.
Finally I want to show you another common to create user daddies and user split screen pseudo user and
user name.
Now you does ask me to set up the password for this upcoming.
Nobody's asking me for fullname.
Rule number one thing for.
It's not my real number.
An order is not knows hosting me or is this information correct.
Why.
So in this way this user come on takes all the information one by one.
You do need to provide the switches to insert the information.
OK so the user Peirce's get created.
So switch use SS password again here you can see we log in as do the SS exit sign here you can see the
home directories that get created here.
And users come on in this way you can manage users inside the Linux environment with all this come once
again.