READ Free Dumps For RedHat- RH302
Question ID 17508 | You have a domain in your LAN named example.com. Allow the FTP connection only
|
Option A | Answer : 1.vi /etc/hosts.deny ALL EXCEPT .example.com 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 |
Question ID 17509 | Your Machine Name is stationx.example.com, (x is your host IP address) which is |
Option A | Answer : ftp ftp.server1.example.com Download the www.html httpd_sys_content_t /var/www/html/index.html If SELinux Context is mismatched, use the restorecon R /var command move the downloaded file into /var/www/html Rename the file into index.html //stationx.example.com /var/www/html is the default directory for httpd service. Index.html is the default directory index. To set the default page without configuring virtualhost copy the file as a index.html in /var/www/html. |
Correct Answer | A |