Administration
  Home arrow Administration arrow Page 6 - Professional File Transfer with proFTP...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM Rational Software Development Conference
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

Professional File Transfer with proFTPD
By: Vikram Vaswani, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 25
    2003-05-14

    Table of Contents:
  • Professional File Transfer with proFTPD
  • The Sales Pitch
  • Source Control
  • Start Me Up
  • Going Home
  • Signed, Anonymous
  • Giving Back
  • Timberrrrrrrrr!
  • Getting Virtual
  • Passing Messages
  • Ending On A High Note

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Professional File Transfer with proFTPD - Signed, Anonymous
    (Page 6 of 11 )

    At this point in time, your proFTPD server is not configured for anonymous FTP - a fact amply demonstrated by the output of the server when you try to log in as the special "ftp" or "anonymous" users.

    Typically, the "ftp" user on the system is configured without a password - which makes it impossible for any user to log in at this time. Therefore, the server needs to be configured to recognize the "ftp" and "anonymous" users, and grant them access to the appropriate public area on the server.

    Setting up an anonymous FTP server with proFTPD is simplicity itself - all you need to do is use the special <Anonymous>...</Anonymous> block, which contains configuration parameters for the operation of your FTP server.

    In order to enable anonymous FTP, pop open your "proftpd.conf" file and add the following code block to it:
    # set root directory for anonymous users to /home/ftp <Anonymous/home/ftp>
    # set the user and group for the server process
    User ftp
    Group ftp
    # alias "anonymous" login to "ftp"
    UserAlias anonymous ftp
    # restrict "anonymous" users from writing data
    <Directory *>
    <Limit WRITE>
    DenyAll
    </Limit>
    </Directory>
    </Anonymous>
    
    Obviously, you should make sure that an entry exists for the user "ftp" in your system's password file, and that the directory "/home/ftp" exists before activating this configuration. Once you're done that, restart the server and try logging in again as an anonymous user.
    $ ftp localhost
    Connected to localhost (127.0.0.1).
    220 ProFTPD 1.2.8 Server (ProFTPD) [olympus.melonfire.com] Name 
    (localhost:joe): ftp 331 Anonymous login ok, send your complete email 
    address as your password.
    Password: *******
    230 Anonymous access granted, restrictions apply.
    Remote system type is UNIX.
    Using binary mode to transfer files.
    ftp> ls
    227 Entering Passive Mode (127,0,0,1,4,199).
    150 Opening ASCII mode data connection for file list
    drwxr-xr-x   3 ftp      ftp          4096 Apr 28 06:45 pub
    226 Transfer complete.
    ftp> cd pub
    250 CWD command successful.
    ftp> ls
    227 Entering Passive Mode (127,0,0,1,4,207).
    150 Opening ASCII mode data connection for file list
    -r-xr-xr-x   1 ftp      ftp       8820072 Jul 15  2002 ar500enu.exe
    226 Transfer complete.
    ftp> get ar500enu.exe
    local: ar500enu.exe remote: ar500enu.exe
    227 Entering Passive Mode (127,0,0,1,4,209).
    150 Opening BINARY mode data connection for ar500enu.exe (8820072
    bytes) 226
    Transfer complete. 8820072 bytes received in 2.05 secs (4.2e+03 
    Kbytes/sec)
    ftp> put mbox
    local: mbox remote: mbox
    227 Entering Passive Mode (127,0,0,1,4,211).
    550 mbox: Permission denied
    ftp> cd /
    250 CWD command successful.
    ftp> cd ..
    250 CWD command successful.
    ftp> pwd
    257 "/" is current directory.
    ftp> bye
    221 Goodbye.
    
    As you can see, the system now gives you access and locates you in the "/home/ftp" directory. You have the ability to download existing files, though not upload new ones, and you can move around freely in the "/home/ftp" hierarchy, but not outside it. In other words, your basic anonymous FTP, good to go!

    More Administration Articles
    More By Vikram Vaswani, (c) Melonfire


     

       

    ADMINISTRATION ARTICLES

    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway