WEBVTT

00:08.470 --> 00:10.290
Elephants will welcome back.

00:10.290 --> 00:13.760
Welcome to another important section of discourse series.

00:13.840 --> 00:14.270
OK.

00:14.400 --> 00:17.590
In this whole section we're going to talk about the use and management.

00:17.650 --> 00:19.580
OK so group managed.

00:19.650 --> 00:22.300
So how to sort of file permission.

00:22.560 --> 00:27.780
And a lot of things that we're going to learn in this whole section but in this lesson we're going to

00:27.780 --> 00:29.910
talk about the user management.

00:30.000 --> 00:36.120
So in this lesson I would like to show you how to use or how to delete the user and how to modify the

00:36.120 --> 00:37.030
user.

00:37.140 --> 00:44.130
And you also learn how to lock user accounts how to unlock them or how to set up the expiry date for

00:44.130 --> 00:45.180
the user accounts.

00:45.190 --> 00:45.510
OK.

00:45.570 --> 00:53.240
So let's see practically how Google does so first of all to show you how to add the user or how to create

00:53.250 --> 00:55.220
the user created user.

00:55.230 --> 01:00.830
There are two commands in the Linux that these user add and add user.

01:00.870 --> 01:08.220
So the basic difference is that when you use the user then it will see you on the information like full

01:08.220 --> 01:12.300
name your phone number like that things are good.

01:12.300 --> 01:19.870
Step by step and when you're using user come on you need to provide information with the help of sutures.

01:20.030 --> 01:20.650
OK.

01:20.670 --> 01:24.070
So let's see how to create a user with user add.

01:24.080 --> 01:24.740
Come on.

01:24.930 --> 01:30.550
So Grito or user Uniden Suro or administrator privilege.

01:30.750 --> 01:34.540
OK so sudo is right here.

01:34.590 --> 01:37.910
You need to provide the user name that you want to create.

01:37.920 --> 01:47.340
I want to create the users to you know here the user created ogee to view the user status.

01:47.340 --> 01:54.230
You can use a command change funnel an end user name.

01:54.540 --> 01:56.190
Permission denied.

01:56.750 --> 01:57.590
Sudo.

01:57.930 --> 02:04.860
And here you can see our user get created here you can see the date when the user is created.

02:04.860 --> 02:07.260
So our users get credit.

02:07.320 --> 02:11.530
But here you need to set up a password for this user.

02:11.610 --> 02:12.100
OK.

02:12.390 --> 02:20.130
Because when you are trying to switch the user like this make switch user come on and it will ask you

02:20.130 --> 02:24.590
for the password and you did not set any password for this user.

02:24.600 --> 02:31.230
So when you're trying to hit with blank password then here you can see it says authentication fail.

02:31.500 --> 02:37.230
So that means here you need to set up a password so to set up the password.

02:37.230 --> 02:38.820
You need to sudo.

02:39.040 --> 02:40.950
And here's the common possibility.

02:41.040 --> 02:41.830
OK.

02:41.940 --> 02:46.820
And the user name is still here.

02:46.980 --> 02:49.320
I asked for the password.

02:49.870 --> 02:52.480
You need to provide the same password twice.

02:52.680 --> 02:55.220
And here it says password updated.

02:55.230 --> 03:01.390
So now the user Steve until you asked for.

03:01.670 --> 03:01.940
OK.

03:01.940 --> 03:04.440
Now here we log in at Steve.

03:04.780 --> 03:05.120
OK.

03:05.140 --> 03:09.340
In this film you can add the user with the help of user add.

03:09.340 --> 03:11.240
Come on over here.

03:11.280 --> 03:12.400
There is one problem.

03:12.550 --> 03:14.540
So what is that problem.

03:14.560 --> 03:19.330
So just log in to home directly here.

03:19.550 --> 03:20.030
Yes.

03:20.080 --> 03:27.550
And here you can see there is no home directory created for us to here only the home directly present

03:27.550 --> 03:28.580
for Prashanth.

03:28.780 --> 03:33.310
So what do you create the home directory for this user.

03:33.310 --> 03:36.300
There are three ways to create the home directory.

03:36.310 --> 03:41.390
The first one is just create the directory with KTAR here.

03:41.710 --> 03:46.120
And of creating the directory with the name Stew.

03:46.390 --> 03:51.310
You need to get into BTC here inside this.

03:51.310 --> 03:59.020
Here you can see the folder Askia evil and you need to copy all the files from this directly to the

03:59.020 --> 04:02.350
folder that you created in the home directory.

04:02.350 --> 04:11.200
The second way to create the home directories you need to provide the option for him while adding the

04:11.200 --> 04:11.640
user.

04:11.640 --> 04:18.420
It will automatically create the home directory for the user of the before creating it.

04:18.520 --> 04:21.120
OK so the user is already created.

04:21.130 --> 04:27.360
So Hoku create the directory for it give us the four it from the CD.

04:27.550 --> 04:42.990
And here you just need to provide a common hole or underscore for the user so you now just get inside

04:43.150 --> 04:45.620
the home.

04:46.090 --> 04:50.630
And here we can see the home directory is created for you.

04:50.850 --> 04:51.600
OK.

04:51.880 --> 04:57.900
You can get inside Steve Ellis cookie.

04:58.590 --> 05:07.580
And now if you show all the hidden files here get in this way you can create the home directory.

05:07.680 --> 05:08.040
OK.

05:08.070 --> 05:09.590
After creating a user.

05:09.710 --> 05:15.770
And if you want to create the home directory while adding the user you can directly at the option I

05:15.990 --> 05:16.410
am.

05:16.470 --> 05:21.850
OK so suppose I want to create a user window.

05:22.070 --> 05:26.280
You have to one.

05:26.370 --> 05:26.700
OK.

05:26.720 --> 05:32.660
And I want to create a home directory for him so just provide hope for them and he dander.

05:32.810 --> 05:41.570
Now let's get inside the home palace and here again see city one home directories get triggered here.

05:41.660 --> 05:42.190
OK.

05:42.360 --> 05:43.600
Do you live with them.

05:43.610 --> 05:50.530
Option for this whole phantom switch in this way you can create a home directory while adding the user

05:50.540 --> 05:53.150
or after having the user name.

05:53.330 --> 05:59.150
So after setting up password and creating home directory the next thing that I would like to show you

05:59.150 --> 06:02.150
is of had the full name for the user.

06:02.210 --> 06:04.700
So you add the full name.

06:04.880 --> 06:07.040
There is a switch I fancy.

06:07.220 --> 06:07.650
OK.

06:07.880 --> 06:14.110
So of all hyphens see here Roy the name Jobs.

06:14.510 --> 06:19.460
Steve Jobs is my favorite So that's why I'm getting Steve Jobs user.

06:19.490 --> 06:25.970
So this will add new users to you to the full name Steve Jobs.

06:26.150 --> 06:30.590
And he didn't get no new user is valid.

06:30.950 --> 06:34.250
So just Qs.

06:34.780 --> 06:42.070
And Steve you know and here you can see the status of still too.

06:42.470 --> 06:45.210
So the full name is added here.

06:45.260 --> 06:51.960
So how do they stack or how to see that to see that you need to use the common finger the finger Kamani

06:52.000 --> 06:54.530
is not present in this environment.

06:54.530 --> 06:56.000
You need to install it.

06:56.000 --> 07:05.010
So first you need to use sudo to get install and think OK I already installed it on this machine.

07:05.080 --> 07:09.350
So use come on like this finger and the user name.

07:09.350 --> 07:11.150
So still do.

07:11.300 --> 07:19.730
And here you can see the user information that is the log in name its home directory and its cell and

07:19.730 --> 07:27.000
also its full name and get here the stooge OP's name is present that we added with the help of I see

07:27.550 --> 07:29.870
no of but adding the full name.

07:30.140 --> 07:35.010
Let me show you how to set up an expiry date for the user.

07:35.210 --> 07:41.410
So to set up an expiry date you need to use the option 1.

07:41.700 --> 07:42.150
OK.

07:42.320 --> 07:52.210
And of that hyphen you need to provide the month and day and the year I want.

07:52.310 --> 08:02.210
Clearly Steve 3 will get this food set up an expiry date for the user accounts D-3 and now you can

08:05.140 --> 08:12.370
still be know here you can see the expiry date for the user.

08:12.510 --> 08:12.950
OK.

08:13.140 --> 08:15.690
The first line shows the creator.

08:15.720 --> 08:19.380
And the next line shows us the expiry date.

08:19.470 --> 08:19.730
OK.

08:19.740 --> 08:25.710
This also shows us the information that is minimum number of days which could possible change the maximum

08:25.710 --> 08:31.020
number of days between possible change and number of days of warning before password expired.

08:31.030 --> 08:36.260
And a lot of things when you're going to learn about these things in detail in the next lesson.

08:36.420 --> 08:41.360
But for now remember we can set up an expiry date like this.

08:41.640 --> 08:41.880
OK.

08:41.910 --> 08:47.600
Now of course setting up the expiry date I want to explain something about user IDs or the groups.

08:47.690 --> 08:48.130
OK.

08:48.360 --> 08:57.270
So with I come on here you can list various ideas about the user that are present on your system.

08:57.280 --> 08:58.120
OK.

08:58.350 --> 09:02.790
Now this is showing us the idea about depression.

09:03.720 --> 09:11.880
Now when I type the user name this is showing us the ID or group information about still one.

09:11.920 --> 09:14.980
You can also see about still do.

09:15.270 --> 09:20.760
So what is user id user ID is user by the server who identified the users.

09:20.920 --> 09:21.400
OK.

09:21.540 --> 09:29.370
We identify a user on the server with the help of name like Stu wants to do our present get but our

09:29.420 --> 09:36.470
server don't understand it with the help of name they identify a user base it on their user IDs.

09:36.750 --> 09:43.480
So in the Linux environment there are about 16 bids are available for creating the user accounts.

09:43.650 --> 09:44.210
OK.

09:44.340 --> 09:51.750
And set up their IDs so you can set up the user id from zero to sixty five thousand five hundred thirty

09:51.750 --> 09:52.260
five.

09:52.400 --> 09:52.900
OK.

09:53.100 --> 10:00.220
And if you're crossing this limit then you need to use the directory so what like open ended up and

10:00.250 --> 10:04.460
they use it id zero as a reserve for the account.

10:04.520 --> 10:04.940
OK.

10:05.130 --> 10:15.360
So you can set up a user ID for the user while creating it like here just need to provide the option

10:15.930 --> 10:23.080
for you and I need to provide the user id like 1000 or more.

10:23.220 --> 10:29.780
You can set up the user IDs starting from zero to sixty five thousand five hundred thirty five gates.

10:29.820 --> 10:33.670
You can set up any number but the zero number is reserved for google.com.

10:33.840 --> 10:37.940
So you can set up the user id with it for you.

10:38.190 --> 10:41.590
I'm not going to out here in a user id guess.

10:41.640 --> 10:46.760
I just want to show you and you can also set up the group Id be too high for me.

10:47.100 --> 10:52.010
So you can list the groups that are available with help of groups come on.

10:52.080 --> 10:58.270
So there are different groups Prashant the CD-ROM pseudo the IP block they are.

10:58.380 --> 11:02.700
These are the groups that are present in this system right now.

11:02.940 --> 11:07.510
So you can add the users to these groups while creating it.

11:07.630 --> 11:13.910
Suppose I want to add the user to the group.

11:13.980 --> 11:14.610
OK.

11:14.990 --> 11:22.060
Suppose the group is a let's see OK and I want to the next user Steve for it.

11:22.290 --> 11:29.410
So you know to write down the command like this with which capital G.

11:29.790 --> 11:34.200
Now bodies that is added to the group Alex.

11:34.380 --> 11:39.750
So possibly still for

11:44.460 --> 11:47.970
OK now switch user still for

11:51.160 --> 11:54.150
now we are again as before.

11:54.340 --> 11:57.280
And here you can list the groups.

11:57.280 --> 12:03.780
And here you can see the user still for is not become the member of staff for a group and also the LSD

12:03.790 --> 12:04.340
group.

12:04.600 --> 12:07.840
So now we have created lots of users here.

12:08.050 --> 12:15.820
So the last point that I would like to show here is how to set up a shell for a particular user.

12:15.880 --> 12:22.290
You can set up a particular shell or you can add a particular shell to the user while trading it.

12:22.320 --> 12:26.900
So there are differentials and that are supported in the Linux environment.

12:27.160 --> 12:32.920
You can see on your computer screen the kinds of shows that are supported in this Linux environment

12:33.440 --> 12:41.740
or you can also disable for a particular user shell access because not all users are required to access

12:41.770 --> 12:48.670
because if someone is having cell access then that users get messed up with you or fines you can modify

12:48.670 --> 12:52.120
your voice or began so damaged your files.

12:52.120 --> 12:56.510
So you can't restrict access to the cell with the help of this technique.

12:56.530 --> 13:08.350
So how to do this just provide the option like this pseudo user and unit deployed Ifan as and with hyphenates

13:08.380 --> 13:12.310
you can set up a different shell to get all of us to follow.

13:12.310 --> 13:13.710
Let's see here Piers.

13:13.750 --> 13:20.250
And here you can see here it shows us the bash versus the shell for the use recompression.

13:20.440 --> 13:25.340
So I want to go to the next few that use the rag.

13:25.690 --> 13:26.300
Yes.

13:26.320 --> 13:26.800
OK.

13:27.000 --> 13:30.950
I found this and I want to set up a shell for him.

13:31.000 --> 13:39.740
That is when SH SH And then the user name is still fine.

13:40.170 --> 13:46.350
Now to possibly five

13:50.890 --> 13:51.530
organs.

13:51.700 --> 13:58.210
Now user Steve file and get your password.

13:58.210 --> 14:03.930
And here you can see when I log in as I do for you I got a different cell.

14:04.170 --> 14:04.910
OK.

14:05.400 --> 14:10.190
Exit the system is still fine.

14:12.360 --> 14:12.670
OK.

14:12.840 --> 14:15.290
Now here we can see you got a different shell.

14:15.570 --> 14:19.040
In this way you can insert different cells.

14:19.170 --> 14:24.310
The users know of doing all these things with this user and.

14:24.310 --> 14:24.770
Come on.

14:24.780 --> 14:27.810
I would like to show you how to use the user more.

14:27.810 --> 14:36.600
Come on with user mode come on you can modify various things about the user so to modify the user just

14:36.680 --> 14:39.060
type single user mode.

14:39.210 --> 14:41.990
And here you need to provide the user name.

14:42.150 --> 14:47.340
But here you need to provide the option that you want to modify.

14:47.340 --> 14:51.820
So what I want to modify the full name for the user.

14:52.060 --> 15:04.410
It's still three days left for Google now stoop to having full name so commodified just pro-white pseudo

15:05.430 --> 15:06.910
user mode.

15:07.320 --> 15:21.960
See here roared name pressure and here user name stewe to get your boss for now.

15:22.470 --> 15:26.000
Let's go to.

15:26.130 --> 15:33.060
And here you can see the name is modify and this way you can use the user more c'mon modify various

15:33.060 --> 15:41.360
things you can modify user shell you can modify the user name or you can do a lot of things with various

15:41.360 --> 15:42.340
options.

15:42.510 --> 15:50.610
You can just see man and the more it shows you all the things that you can do with the help of these

15:50.740 --> 15:53.370
on is the long tail here.

15:53.700 --> 15:58.970
So I want to show you here are some of the important things that you can do.

15:59.010 --> 16:04.180
You can modify the shell with the help of option I guess.

16:04.390 --> 16:08.900
OK let's modify the shill for Stu 6.

16:08.940 --> 16:09.740
OK.

16:10.320 --> 16:13.500
So now here you are more skips x.

16:13.590 --> 16:14.210
OK.

16:14.400 --> 16:28.000
Now switch user still 6 Sulu possibly still 6.

16:28.350 --> 16:33.960
Ok now switch user Steve 6

16:37.090 --> 16:44.960
Get know we modified the shell for users to use X and we got a differential.

16:45.390 --> 16:45.780
OK.

16:45.810 --> 16:54.260
Now let's see how to ban or restrict special access for end user fields.

16:54.490 --> 16:55.070
No.

16:55.070 --> 16:55.650
All right.

16:55.680 --> 17:02.790
Go switch Steve 6.

17:03.030 --> 17:07.780
We only unable to log in at still 6.

17:07.830 --> 17:11.820
The next thing is the whole issue of how logged on the user.

17:12.140 --> 17:18.290
You can log on these records and we Typhon hell and you need to point the user name.

17:18.410 --> 17:22.520
I want to slow down still one

17:26.330 --> 17:31.340
I love it down and just switch user first log of

17:35.600 --> 17:41.900
trying to log in to one.

17:42.060 --> 17:43.740
It shows log an incorrect

17:49.360 --> 17:56.850
after this here or I'll find you this will unlock the user.

17:57.130 --> 18:02.930
Here it shows us the message unlocking the user password Grizzard or less outcome.

18:03.070 --> 18:10.770
So after unlocking it you could pull away or you need to set up a password for it.

18:10.780 --> 18:25.860
So Sudol pasta MDC-T one for password log of one into your password.

18:26.260 --> 18:26.810
OK.

18:26.840 --> 18:29.860
Now the logging is still one.

18:30.060 --> 18:34.410
This Wii you can modify the user accounts.

18:34.790 --> 18:35.940
You can log them.

18:35.960 --> 18:42.650
You can unlock them or get with the help of a user more money and you can do lot of things if you want

18:42.650 --> 18:43.440
to learn in depth.

18:43.460 --> 18:49.960
You can use man and use are more common to see the details.

18:50.090 --> 18:50.540
OK.

18:50.690 --> 18:57.250
So the last thing here to show you is how good delete the user accounts.

18:57.400 --> 19:00.820
So for that let me log in again.

19:01.190 --> 19:01.680
OK.

19:01.710 --> 19:09.650
On the inside hole ls and here you can see these are the users that we have created better having home

19:09.650 --> 19:10.330
directories.

19:10.330 --> 19:10.580
OK.

19:10.610 --> 19:12.770
There are lots of users that we created.

19:12.780 --> 19:21.920
That is from Stu who won still 6 so who are these users you need to Cloward wide user.

19:23.240 --> 19:24.380
The user name.

19:24.840 --> 19:34.700
So you get less in here you can see the users you get to work and the home directories still present

19:34.700 --> 19:35.610
here.

19:35.630 --> 19:46.730
So if you want to delete the user with this home directory unit deployed switch iPhone or OK we it already

19:46.730 --> 19:53.250
so point option 1 less.

19:53.530 --> 19:57.240
And here you can see still one home directory is get deleted.

19:57.400 --> 20:06.050
And if you want to remove this directory that is to you need to be a user Arkwright with him.

20:06.860 --> 20:09.740
Steam no less.

20:09.830 --> 20:13.110
You can see still directly he's get deleted.

20:13.940 --> 20:20.970
It this way you can delete all the users with the help of user they'll come on or you can modify Wikis

20:20.970 --> 20:25.080
are more common and also you can add them with user add.

20:25.080 --> 20:25.700
Come on.

20:25.860 --> 20:26.260
OK.

20:26.340 --> 20:26.940
So.

20:27.020 --> 20:27.420
OK.

20:27.450 --> 20:40.060
Finally I want to show you another common to create user daddies and user split screen pseudo user and

20:40.090 --> 20:42.710
user name.

20:43.050 --> 20:49.490
Now you does ask me to set up the password for this upcoming.

20:49.840 --> 20:55.300
Nobody's asking me for fullname.

20:55.910 --> 20:59.220
Rule number one thing for.

20:59.510 --> 21:02.120
It's not my real number.

21:02.470 --> 21:08.240
An order is not knows hosting me or is this information correct.

21:08.240 --> 21:08.780
Why.

21:08.900 --> 21:15.420
So in this way this user come on takes all the information one by one.

21:15.740 --> 21:19.610
You do need to provide the switches to insert the information.

21:19.840 --> 21:23.500
OK so the user Peirce's get created.

21:23.540 --> 21:35.910
So switch use SS password again here you can see we log in as do the SS exit sign here you can see the

21:35.910 --> 21:38.880
home directories that get created here.

21:39.100 --> 21:46.380
And users come on in this way you can manage users inside the Linux environment with all this come once

21:46.460 --> 21:46.940
again.
