READ Free Dumps For RedHat- RH302
Question ID 17502 | Download a index.html file from ftp.server1.example.com and set as default page for
|
Option A | Answer : //server1.example.com 2.Login as an anonymous and download the file. 3.Copy the file in /var/www/html if you downloaded in another location. 4.service httpd restart //station?.example.com httpd_sys_content_t /var/www/html/index.html If SELinux Context is mismatched, use the restorecon R /var command |
Correct Answer | A |
Question ID 17503 | Configure to allow the ssh service only from 192.168.0.0/24 except 192.168.0.4 |
Option A | Answer : 1.vi /etc/hosts.deny 192.168.0. EXCEPT 192.168.0.4 We can secure the services using tcp_wrappers. There are main two files, /etc/hosts.allow and /etc/hosts.deny. There will be three stage access checking -Is access explicitly permitted? Means permitted from /etc/hosts.allow? - Otherwise, Is access explicitly denied? Means denied from /etc/hosts.deny? - Otherwise, by default permit access if neither condition matched. To deny the services we can configure /etc/hosts.deny file using ALL and EXCEPT options In Client list can be either domain name or IP address. |
Correct Answer | A |