- Table of Contents
- Copyright
- About the Lead Authors
- About the Contributing Authors
- Acknowledgments
- Tell Us What You Think!
- Introduction
- I. Red Hat Linux Installation and User Services
- Chapter 1. Introduction to Red Hat Linux
- Chapter 2. Installation of Your Red Hat System
- Chapter 3. LILO and Other Boot Managers
- Chapter 4. Configuring the X Window System, Version 11
- Chapter 5. Window Managers
- Chapter 6. Connecting to the Internet
- Chapter 7. IRC, ICQ, and Chat Clients
- Chapter 8. Using Multimedia and Graphics Clients
- II. Configuring Services
- Chapter 9. System Startup and Shutdown
- Chapter 10. SMTP and Protocols
- Chapter 11. FTP
- Getting and Installing the FTP Server
- How the FTP Server Works
- Configuring Your FTP Server
- FTP Administrative Tools
- Using FTP Clients
- Summary
- Chapter 12. Apache Server
- Chapter 13. Internet News
- Chapter 14. Domain Name Service and Dynamic Host Configuration Protocol
- Chapter 15. NIS: Network Information Service
- Chapter 16. NFS: Network Filesystem
- Chapter 17. Samba
- III. System Administration and Management
- Chapter 18. Linux Filesystems, Disks, and Other Devices
- Chapter 19. Printing with Linux
- Chapter 20. TCP/IP Network Management
- Chapter 21. Linux System Administration
- Chapter 22. Backup and Restore
- Chapter 23. System Security
- IV. Red Hat Development and Productivity
- Chapter 24. Linux C/C++ Programming Tools
- Chapter 25. Shell Scripting
- Chapter 26. Automating Tasks
- Chapter 27. Configuring and Building Kernels
- Chapter 28. Emulators, Tools, and Window Clients
- V. Appendixes
- A. The Linux Documentation Project
- B. Top Linux Commands and Utilities
- C. The GNU General Public License
- D. Red Hat Linux RPM Package Listings
Getting and Installing the FTP Server
Red Hat Linux uses the freely available wu-ftpd server. This server comes as an RPM (Red Hat Package Manager) and will be installed during installation. If you decide you want to run an FTP server but did not install the RPM, fetch wu-ftpd-2.6.1-6. i386.rpm from the CD-ROMs or check http://www.redhat.com for the latest edition.
To install the RPM, mount your Red Hat CD-ROM and as root run the following:
# rpm -ivh /mnt/cdrom/RedHat/RPMS/wu-ftpd*.rpm
If you plan to offer an anonymously accessible site, be sure to install anonftp-3.0-a. i386.rpm from the CD-ROMs as well. As always, you can check for the latest version at http://www.redhat.com.
To install the anonymous FTP file, log in as root and run the following:
# rpm -ivh anonftp*.rpm
Now you have a working anonymous FTP server. Of course, you should also have an active Internet network connection and a valid host and domain name for a truly public server. See Chapter 14, "Domain Name Service and Dynamic Host Configuration Protocol," for details about Domain Name Service (DNS).
To test whether the installation worked, simply use the FTP client and connect to your machine. For the sample FTP server, vaio, you would respond to the following:
# ftp vaio.home.org Connected to vaio.home.org. 220 vaio.home.org FTP server (Version wu-2.6.1(1) Mon Jul 24 01:59:25 EDT 2000) ready. Name (vaio.home.org:bball): anonymous 331 Guest login ok, send your complete e-mail address as password. Password: bball@tux.org 230 Guest login ok, access restrictions apply. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 200 PORT command successful. 150 Opening ASCII mode data connection for directory listing. total 32 d--x--x--x 2 root root 4096 Aug 9 15:08 bin d--x--x--x 2 root root 4096 Aug 9 15:08 etc drwxr-xr-x 2 root root 4096 Aug 9 15:08 lib drwxr-xr-x 2 root 50 4096 Jul 12 11:31 pub 226 Transfer complete. ftp>
As you can see, after you log in, you'll be in the /home/ftp directory. To quit the FTP client software, simply type bye or quit at the ftp> prompt. If you want to test the private FTP server, rerun the FTP client but use your login instead of the anonymous login. Here's an example:
# ftp vaio.home.org Connected to vaio.home.org. 220 vaio.home.org FTP server (Version wu-2.6.1(1) Mon Jul 24 01:59:25 EDT 2000) ready. Name (vaio.home.org:bball): bball 331 Password required for bball. Password: mypassword 230 User bball logged in. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 200 PORT command successful. 150 Opening ASCII mode data connection for directory listing. total 8856 -rw-rw-r-- 1 500 500 500309 Aug 16 15:53 06fig01.pcx -rw-rw-r-- 1 500 500 480674 Aug 16 16:30 06fig02.pcx -rw-rw-r-- 1 500 500 496037 Aug 16 16:10 06fig03.pcx -rw-rw-r-- 1 500 500 361017 Aug 15 13:16 28fig12.pcx drwxr-xr-x 4 500 500 4096 Aug 21 09:30 Desktop drwxrwxr-x 5 500 500 4096 Aug 10 00:40 GNUstep -rw-rw-r-- 1 root root 101 Aug 16 15:42 mychat -rw-rw-r-- 1 root root 144 Aug 16 15:44 out.txt -rw-rw-r-- 1 500 500 176463 Aug 16 14:59 ppp-2.3.11-7.i386.rpm 226 Transfer complete. ftp>
As you can see, when you log in with a registered username and password, you'll be placed in your home directory on the remote computer.
How the FTP Server Works | Next Section

Account Sign In
View your cart