

To do this, edit the "/etc/vsftpd/nf" file, setting the "anonymous_enable" entry as follows. This is fine for the RHCSA exam, but on real servers you would probably want to disable anonymous access. FTP Server : Securityīy default the FTP installation allows anonymous access, which is potentially dangerous. More information on SELinux can be found here. You can check the current context setting on files and directories using the "ls -alZ" command. # semanage fcontext -a -t public_content_t "/var/ftp(/.*)?" The public_content_t context should be assigned to all public content. The setsebool command is used to set a specific boolean value. The SELinux booleans associated with the vsftpd service are displayed using the getsebool command. If you are using SELinux, you will need to consider the following points. Iptables -A INPUT -p tcp -dport 21 -j ACCEPT

On the "Trusted Services" section, scroll down the list and check the "FTP" option, then click the "Apply" button. The "Firewall Configuration" dialog from the menu (System > Administration > Firewall) or initiated from the command line by running the system-config-firewall command.You need to punch a hole in the firewall for port 21 to make sure the FTP server can be accessed from the network. # service vsftpd restart FTP Server : Firewall Changes to the "/etc/vsftpd/nf" file have to be followed by a reload or a restart of the httpd service. The default directory for anonymous connections is "/var/ftp". The FTP configuration files are located under the "/etc/vsftpd" directory, specifically the "/etc/vsftpd/nf" file. The FTP server is now installed and running. Turn on the FTP server and make sure it starts automatically on reboot. Issue the following command to install the FTP server.

This section covers the File Transport Protocol (FTP) information needed for both the RHCSA and RHCE exams. The RHCE exam covers the HTTP server in more depth, as described here. This is all you need to know for the RHCSA exam. Iptables -A INPUT -p tcp -dport 80 -j ACCEPT In this case we could need the following entry. Using the iptables service directly, as described here.This is the text-based version of the above dialog. The text-based "Firewall Configuration" utility ( system-config-firewall-tui).On the "Trusted Services" section, scroll down the list and check the "WWW (HTTP)" option, then click the "Apply" button. The default document root is "/var/You need to punch a hole in the firewall for port 80 to make sure the HTTP server can be accessed from the network. The HTTP configuration files are located under the "/etc/httpd" directory, with the main configuration file being the "/etc/httpd/conf/nf" file. The HTTP server is now installed and running. Turn on the HTTP server and make sure it starts automatically on reboot. Make sure the "/etc/hosts" file contains references for the loopback address and the hostname.ġ27.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 Issue the following command to install the HTTP server. For a more detailed discussion of the HTTP server read the article here. The requirement for the RHCSA exam is very simple. Apache Monitoring using mod_status (server-status).Remember, the exams are hands-on, so it doesn't matter which method you use to achieve the result, so long as the end product is correct.

A separate articles will cover the information required for HTTP server portion of the RHCE EX300 exam. This article describes the configuration of default HTTP and FTP servers on Linux, with specific reference to the information needed for the RHCSA EX200 certification exam. Home » Articles » Linux » Here Linux HTTP and FTP Server Configuration
