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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |