Red Hat Linux FTP / TFTP


The following describers steps to set up FTP (and later TFTP) on Red Hat Linux:

1. Create the user / password combination you want to use with the FTP server. For example: ftp-user1.

2. Confirm if FTP is installed by typing the following in a shell:

rpm -q vsftpd

The following is an example response (your version may differ):


If vsftpd is not installed, install it.

3. Modify the vsftpd.conf file which is in /etc/vsftpd

a. Become root.

b. Edit vsftpd.conf file with a text editor.

c. Uncomment the line #listen = YES

d. Change umask = 000 (must be at least 011)

e. Make sure chroot_list_enable=YES (and is not com­mented), and identify the chroot_list_file and loca­tion, making sure that line is not commented either.

f. Save vsftpd.conf

g. Create chroot_list in the selected location (default: /opt/etc/vsftpd), and enter the authorized user (here: ftp-user1).

The user must already be a system user with a valid passwd. You must also be able to find /home/ with that user’s home directory beneath it.

h. If necessary, run: /sbin/service vsftpd stop. It stops any running vsftpd.

i. Run this to restart the FTP process: /sbin/service vsftpd start

j. Confirm the FTP process is running netstat -a | grep ftp


If you need TFTP to communicate with your managed resources, follow these steps to install and configure it.

1. Confirm TFTP is installed by running this command in a shell:

rpm -q tftp-server

The following is an example response (your version may differ)


If TFTP-server is not installed, install it.

2. Start TFTP with the following shell commands, once you are logged in as superuser:

/sbin/chkconfig --level 345 xinetd.d on

/sbin/chkconfig --level 345 tftp on

3. Modify the following line in the tftp file in /etc/xientd.d/ to look as follows:

server_args = -u ftp-user1 -s /home/ftp-user1

(This sets the same directory for ftp & tftp)

4. Change disable=yes to disable = no

5. Save the file, then restart xinetd by going to System > Administration > Server settings > Services, and enter the root password. Select xinetd and click Restart (or click Stop, then click Start).

6. Run the following in a shell to verify TFTP is running: netstat -a | grep tftp. A response should indicate such a process is running.

The test files in the ftp user’s home must have at least -rw-rw-rw (666) permissions for Redcell Synergy’s server test to be successful.