From the course: Red Hat Enterprise Linux 8 Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Configure access control on directories

Configure access control on directories

From the course: Red Hat Enterprise Linux 8 Essential Training

Start my 1-month free trial

Configure access control on directories

- [Instructor] I had mentioned in a previous video that Apache has some directives for restricting access based on user, group, network or host. Let's take a closer look. With require user, access is granted to a specific user based on the username or user ID. We can deny the same way with not require user. Let's see what this looks like. To allow user access by user we just specify their name. To deny by user we change it to not require user and again specify their name. We can allow or deny by group as well by using require group and not require group. For both we can just specify the group name. With require valid users, access is granted only to valid users. For more broad control we can allow or deny based on network addresses by using require ip and not require ip directives. To use this, we specify the network address without the host portion. If you want to allow or deny based on host name use the require host or not require host directives. You can specify a host or even a…

Contents