dixie state college logo
dixie cit it cs vt degrees courses faculty facilities jobs submit login
dixie > cit > it > it3100 >



Computer and Information Technology

  Degrees
  Courses
  Faculty
  Facilities
  Contact
  Jobs
  Scholarships
IT 1100 2400 3100 3110 3200 3500 4200 4300 4400 4600
Syllabus Assignments Schedule Examples Notes Forum Grades

IT 3100 Systems Design and Adminsitration I
Anonymous 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.
Student Projects   
CIT.DIXIE.EDU