1
00:00:00,630 --> 00:00:10,530
Now we want to control the access authentication by using the Require group option, that means we

2
00:00:10,530 --> 00:00:16,840
want certain groups of people to have access to our website, certain groups not to have access.

3
00:00:17,340 --> 00:00:23,730
So in our case, we are going to create one webgroup files and in Webgroup file what we are going to say

4
00:00:24,480 --> 00:00:26,160
webadmin and in webadmin.

5
00:00:26,170 --> 00:00:34,320
we will specify nanu and kanu Webadmins and then we will specify to operator: vipin anantika.

6
00:00:34,740 --> 00:00:38,620
Then we will make changes in .htaccess file.

7
00:00:38,640 --> 00:00:44,150
We are going to say AuthType Basic, here we are going to change the message "by invitation only".

8
00:00:44,160 --> 00:00:47,250
You can write any message then AuthUserFile

9
00:00:47,500 --> 00:00:48,850
/etc/httpd/.

10
00:00:49,170 --> 00:00:54,180
/webpass and now we are going to add AuthGroupFile.

11
00:00:54,180 --> 00:00:57,140
Also, /etc/httpd/webgroup.

12
00:00:57,360 --> 00:01:01,070
That means now it is going to read this file also.

13
00:01:01,770 --> 00:01:10,290
Then here we are going to specify Require webadmin that mean only the people which are in Web

14
00:01:10,300 --> 00:01:13,560
admin group, they will be able to access the page.

15
00:01:14,160 --> 00:01:18,490
Then we will test the syntax and we will see.

16
00:01:18,750 --> 00:01:25,360
So what we are doing here, we are creating two groups, webadmin having the users, Nanu and kanu

17
00:01:25,710 --> 00:01:29,000
and Operator Group, having the user Vipin and Anantika.

18
00:01:29,310 --> 00:01:36,920
And we will make the changes in this file and we will add this Require group 

19
00:01:36,930 --> 00:01:37,730
webadmin.

20
00:01:37,830 --> 00:01:44,880
then we will test it with so Nanu and Kanu will be able to access the webpage, but when we

21
00:01:44,880 --> 00:01:46,890
will try to access as anantika user

22
00:01:46,890 --> 00:01:50,720
It will not be able to access even vipin user will not be able to access.

23
00:01:51,150 --> 00:02:00,230
So that is the purpose of this, instead of writing name of individual users, what you can do,

24
00:02:00,420 --> 00:02:03,030
you can use this Require group option also.
