Lesson 8 Part II
Setting up an FTP Server with wu-ftpd
The student is now skillful enough to tackle the installation and
configuration of some commonly used servers. This lesson will
guide the student through the process necessary to get an FTP server
running on their Linux workstation. This server will be
setup using the wu-ftpd and anonftpd packages. They are not
included with RedHat 9.0. A possible place to obtain these
packages is from rpmfind.net.
FTP Server
The setup process for an FTP server is covered in great detail in
Chapter 20 of your textbook. It is recommended that you
refer to this or your instructor whenever questions occur.
- Identify the packages and install them
- The FTP protocol uses a predefined port. As a matter
of security ports are not open by default. When a new service is
desired the program that handles requests through a particular port must
be enabled. This is conducted by a setup file located in the
directory identified below. This can be completed by confirming
that the ftp server is enabled
- Set the parameter "Disable = no" located in
/etc/xinetd.d/wu-ftpd
- Review the default file /etc/ftpaccess
- Test the FTP server
- If it worked then go to the next step and add a guest user
account
- else identify and solve the problem
- You've made some changes to your system. When this is
performed on a Windows platform you need to reboot. Not with
Linux! You will need to restart the process that has been changed or
added to your system. Ask your instructor for some guidance in
this area. It is very important and constitutes some important system
administration techniques. Hint: You need to restart the
super daemon entitled, xinetd. The script for restarting this
daemon is located in the usual place --> /etc/rc.d/init.d/. To
restart the xinetd daemon execute --> ./xinetd restart.
Retry accessing your ftp site.
- endif
- Adding a guest user account as outlined in the textbook.
- Follow steps 1 thru 8 on pages 761-763.
- Place a test file in the /home/mrftp/pub directory.
- Restart the traffic cop for the ports on your system.
This traffic cop is the xinetd package.
- The script for this service is located in /etc/rc.d/init.d.
- In the directory containing xinetd type the command;
'./xinetd restart'.
- Now your system has updated all the changes you've
made. Now isn't that better than rebooting. (The answer is
YESSSSSSS!)
- The other way to restart the xinetd service is type the
command; '/etc/rc.d/init.d/xinetd restart'.
- And still another way to restart the xinetd daemon is Main
Menu --> System Settings --> Server Settings --> Services.
- Test to see if your FTP server works for the quest account.
- Log into the server as 'anonymous'. Does it work?
- Place a file in the pub directory of your FTP server and try
downloading it with the anonymous account.
- Log into the FTP server as 'mrftp'. Does it work?
- Refer to your textbook to determine how to setup a greeting when
someone logs into your FTP site. Use the example from the link on
the linuxindayton website. Use the example and edit it for you own
use. Test and verify that a your greeting is seen.
- Setup logging of your FTP site. Follow the instructions on
pages 774-775 of your textbook.
- Conduct a couple of logins and some type of activity and check
you log file.
- If you have time, setup your ftp site so mrftp can upload files
to one of his directories.