Question: In this lab you will set up an FTP server.: Setting Up an FTP Server (vsftpd) on page 724 of Sobell Procedure 1. Install, configure,
In this lab you will set up an FTP server.:
"Setting Up an FTP Server (vsftpd)" on page 724 of Sobell
Procedure
1. Install, configure, and test the vsftpd FTP server.
a. Make sure the vsftpd package is installed. If vsftpd is not installed, install
it.
b. Working with root privileges, set up the vsftpd service to start each time
the system enters multiuser mode and then start the vsftpd service.
c. Add content to the /var/ftp/pub directory by copying the
/user/share/dict/linux.words file to the /var/ftp/pub directory.
d. Add more content by copying the /usr/share/doc/vsftpd* directory hierarchy
to the /var/ftp/pub directory. Use the cp r option to copy the
directory and its contents.
e. Test the FTP server by using ftp to connect to the local system, first as student,
then as an anonymous user (anonymous or ftp). See JumpStart II:
Starting a vsftpd FTP Server and Troubleshooting both on page 725
of Sobell.
2. Set up the server (local system) so that it can accept connections from
remote systems and so that it allows local users to log in.
a. Open the FTP port using firewalld-cmd so that remote systems can access
the FTP server.
b. Give the following command to cause SELinux to allow users to access
their home directories using FTP.
$ su -c 'setsebool P ftp_home_dir on'
Alternately, you can run SELinux in permissive mode by giving the following
command.
$ su -c 'setenforce permissive'
Each of these commands must be run with root privileges.
c. The Fedora vsftpd configuration file sets local_enable to YES (Sobell,
page 728), which allows local users to log in on the FTP server. If you
were to change the vsftpd file, you would need to restart the vsftpd daemon.
Because of the way Fedora sets up vsftpd, you do not need to
change the configuration file and you do not need to restart the server.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
