Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, Am using CentOS 5.5 and trying to configure FTP. I want to access a particular directory of this server in any other windows system through browser using FTP. Steps ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    0

    Need help for FTP creation


    Hello,

    Am using CentOS 5.5 and trying to configure FTP.

    I want to access a particular directory of this server in any other windows system through browser using FTP.

    Steps followed:
    1. Created a directory in /var/ftp/swrep
    2. groupadd swrep
    3. useradd -g swrep swrep
    4. chmod 777 /var/ftp
    5. chkconfig vsftpd on
    6. In vsftpd.conf, disabled anonymous_enable.

    I AM ABLE TO LOGIN TO FTP FROM PUTTY. BUT NOT THROUGH BROWSER (IE).

    PLEASE HELP!

    Thanks!

  2. #2
    Just Joined!
    Join Date
    Nov 2011
    Posts
    0
    Hello.. i tried doing the same steps again and SUCCEEDED.

    But now the problem is, in IE when I access this FTP, it is listing the whole list of directories of the system.

    How do I RESTRICT displaying other folders except my specific directory?

    Please help!

    Thanks!

  3. #3
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    How are you accessing your ftp server in a browser? Are you using a url like this in the address bar:

    ftp://<FTP_SERVER_IP>

    If you don't get prompted for user/pass, do you put that in the URL?

    When your page is loaded, what do you see?

    Also, show the contents of your vsftpd.conf file.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Sep 2011
    Posts
    5
    Quote Originally Posted by prass80 View Post
    Hello.. i tried doing the same steps again and SUCCEEDED.

    But now the problem is, in IE when I access this FTP, it is listing the whole list of directories of the system.

    How do I RESTRICT displaying other folders except my specific directory?

    Please help!

    Thanks!
    you have to fix the chroot value to ~ so that every user is redirected to his home

  6. #5
    Just Joined!
    Join Date
    Nov 2011
    Posts
    0
    Sorry for the delay in response. Here is my answers to your queries:

    How are you accessing your ftp server in a browser? Are you using a url like this in the address bar:
    ftp://<FTP_SERVER_IP>
    Yes;

    If you don't get prompted for user/pass, do you put that in the URL?
    I am getting prompt for user name & password

    When your page is loaded, what do you see?
    When I input username and password, immediately it lists the entire contents of root directory

    Also, show the contents of your vsftpd.conf file:
    anonymous_enable=NO
    local_enable=YES
    write_enable=YES
    local_umask=022
    #anon_upload_enable=YES
    #anon_mkdir_write_enable=YES
    dirmessage_enable=YES
    xferlog_enable=YES
    connect_from_port_20=YES
    #chown_uploads=YES
    #chown_username=whoever
    xferlog_file=/var/log/xferlog
    xferlog_std_format=YES
    #idle_session_timeout=600
    #data_connection_timeout=120
    #nopriv_user=ftpsecure
    #async_abor_enable=YES
    #ascii_upload_enable=YES
    #ascii_download_enable=YES
    ftpd_banner=Welcome to blah FTP service.
    #deny_email_enable=YES
    #chroot_list_enable=YES
    #l_recurse_enable=YES
    listen=YES
    #listen_ipv6=YES
    pam_service_name=vsftpd
    userlist_enable=YES
    tcp_wrappers=YES
    _recurse_enable=YES


    Thanks in advance!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •