Red Hat Linux FTP / TFTP

The following are steps to set up FTP and TFTP on Red Hat Linux:

1. 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):

vsftpd-2.0.5-10.el5

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

a. Become super user.

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. Save vsftpd.conf

f. Run this process to stop the FTP process: /sbin/service vsftpd stop

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

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

3. Create a user, for example, ftp-user1 with the home directory = /home/ftp-user1

4. 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)

tftp-server-0.42-3.1

5. 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

6. Modify the following in the TFTP file located in /etc/xientd.d

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

This sets the same directory for ftp & tftp

disable = no

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

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