Let let us see how this Require group option works, so we will go to our master system, on master
system.
Again, we are going to edit our .htaccess file.
But before that, we are going to create one group file /etc/httpd and we are going to name that
as webgroup.
And here we are going to specify webadmin: here we are going to put nanu and kanu user
then we are going to create one operator you can name of the group.
could be anything.
So we are saying operator.
So we are going to specify.
So here we are going to specify vipin and anantika.
So we are going to save this now.
We are going to make entry in which file.
We are going to make entry
regarding this file in .htaccess file, so here it is okay, here we are going to change
the message.
or it could be the same message
By invitation.
only.
By invitation only, then this is the same here.
What we are going to write, we are going to write one new parameter AuthGroupFile.
Then we are going to specify the name of the file that is our /etc/httpd/webgroup
here, instead of we are going to specify Require group in our case, webadmin.
So let us again check whether everything AuthType is Basic, AuthName "by invitation only" or Auth
UserFile is the same, AuthGroupFile is the name of the file that we created.
Then here we are specifying Require group webadmin.
So we are going to save this.
Then we are going to view.
Let us view this file also the entries are proper, then we are going to view .htaccess also.
settings are okay, so we are going to check the syntax.
It is working although no need to restart the system, reboot the system or restart the service, but still
we are doing that, then what we will do?
We will go to the C10 system and we will try to access first as.
vipin unauthorized, regarding.
Anantika, it is unauthorized, but what about.
nanu and kanu.
nanu is also given the access this is kanu.
That is what we wanted.
That means you can use this Require group option also.