How to configure an anonymous ftp server on Red Hat Enterprise Linux?

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 3, 4, 5 and 6

Issue

  • How to configure an anonymous ftp server on Red Hat Enterprise Linux?

Resolution

  1. Verify the localhost line in /etc/hosts looks like the following:

     127.0.0.1 localhost.localdomain localhost
     
    
  2. Next configure the vsftpd.conf file. NOTE: Back up the vsftpd.conf file

     # cd /etc/vsftpd
     # cp vsftpd.conf ./vsftpd.conf.ORIG 
    
  3. Using an editor, open the file vsftpd.conf. Uncomment the line anonymous_enable=YES. Save and quit the vsftpd.conf file.

  4. Start the vsftpd service

     # service vsftpd start 
    
  5. To test the configuration run the following commands:

     # ftp localhost
     Login with:
     username: anonymous
     password: root@local 
    
  6. This should show an ftp prompt. Type 'bye' to exit to the command prompt.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments