1
00:00:00,060 --> 00:00:05,520
First, we will be creating some Apache users, we will be using httpasswd command to create 

2
00:00:05,800 --> 00:00:13,920
username and password combination when we are using this httpasswd command

3
00:00:14,730 --> 00:00:21,570
we can use the different option and you can use the -c option to create new file because we have

4
00:00:21,570 --> 00:00:27,640
two store information regarding a username in some file.

5
00:00:27,870 --> 00:00:33,660
So in our case, what we will be running the command httpasswd -c what is the meaning

6
00:00:33,660 --> 00:00:37,260
of -c,  -c option to create new file.

7
00:00:37,440 --> 00:00:43,170
That means it is going to create the file which file that we are going to specify in our we are going

8
00:00:43,170 --> 00:00:53,210
to create the file /etc/httpd/webpass, you can name any and we are creating it in /etc/httpd directory

9
00:00:53,790 --> 00:00:54,660
and which user.

10
00:00:54,690 --> 00:01:03,300
I want to create anankita and if we are specifying -m option then it will be using the MD5

11
00:01:03,570 --> 00:01:04,340
encryption.

12
00:01:04,890 --> 00:01:10,620
And please remember when we are going to create the second user, we are not going to specify the -

13
00:01:10,620 --> 00:01:14,270
C again because it is going to override the file.

14
00:01:14,300 --> 00:01:19,470
So only during the creation of a first user you need to specify the -.

15
00:01:19,470 --> 00:01:23,700
c option in the rest of the user do not specify it.

16
00:01:23,910 --> 00:01:26,360
Otherwise what will happen, it will override that.

17
00:01:26,910 --> 00:01:34,410
So we will create the second user, Vipin and we are going to give some passwords to them and then

18
00:01:34,410 --> 00:01:37,540
we will be creating the kanu user and the nanu user.

19
00:01:37,920 --> 00:01:44,010
So in this way we will create the 4 user and where the information will be stored, it will be

20
00:01:44,010 --> 00:01:52,980
stored in /etc/httpd/webpass file and this name you can name it. it is not that this

21
00:01:52,980 --> 00:01:53,750
is a fixed name.

22
00:01:54,250 --> 00:01:58,350
You can have any name and we can view that information.

23
00:01:58,350 --> 00:02:01,500
Also cat /etc/httpd/webpass.

24
00:02:02,100 --> 00:02:08,400
If we are going to view that information, it will be visible that it contains the information about

25
00:02:08,820 --> 00:02:10,080
all the four users.
