FTP Notes
Installation Packages
-----------------------------
1- install package: proftpd
Commands of Interest
-------------------------------
1- /etc/init.d/inetd restart
2- /etc/init.d/proftpd restart
Files and Directories
---------------------
1- /etc/proftpd.conf ftp server configuration file
2- /etc/inetd.conf "internet super server" configuration file
3- /home/ftp anonymous ftp document directory
4- /var/log/auth.log log of login attempts
Specific Configuration Tasks
-----------------------------------------------------------------------
To install the proftpd package
------------------------------------------------------
0- su -
1- apt-get install proftpd
2- Choose inetd or standalone.
For low-usage servers, inetd would be appropriate.
For high-traffic ftp servers, standalone would be best.
To enable anonymous ftp downloads
------------------------------------------------------
0- su -
1- edit /etc/proftpd.conf
Uncomment the entire <Anonymous> section of the configuration
file. Do not uncomment the anonymous uploads.
2- If you are running in standalone mode,
/etc/init.d/proftpd restart
To install documents for anonymous downloads
------------------------------------------------------
0- su -
1- cp /some/file /home/ftp
2- chown -R ftp:nogroup /home/ftp
Any desired directory structure may be built under the
/home/ftp directory.
To disable user logins through ftp (for security reasons)
------------------------------------------------------
0- su -
1- edit /etc/proftpd.conf
Add these lines, somewhere before the <Anonymous>
section of the configuration file.
=====================================================
# Disable user logins
<Limit LOGIN>
DenyUser !ftp
</Limit>
=====================================================
2- If you are running in standalone mode,
/etc/init.d/proftpd restart
To test the configuration
--------------------------------------------------
1- login to a unix computer
2- ftp ns1.horgoth.com (your host)
user: anonymous
password: anything
ftp> dir
ftp> quit
This should show the available files
3- ftp ns1.horgoth.com (your host)
user: some_user
password: correct_password
This should sat "Login incorrect", even when the
password is correct.
4- Use a broswer to visit ftp://ns1.horgoth.com/ as
anonymous to view and download files.
Citation: (course_default). (2007, November 27). FTP Notes. Retrieved September 08, 2008, from Dixie State College of Utah Web site: http://pilot.educommons.usu.edu/dixiestate/computer-and-information-technology/it-3100-systems-design-and-adminsitration-i/ftp-notes.
Copyright 2007,
by the Contributing Authors.
This work is licensed under a
Creative Commons License.