Find the answer to your Linux question:
Results 1 to 2 of 2
Hey all. I set up proftp on my slackbox, and I've been reading documentation all afternoon and still have a very stupid question. Where's the root directory? It created the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Banned
    Join Date
    Dec 2008
    Location
    Arkansas
    Posts
    4

    Proftpd for dummies


    Hey all.

    I set up proftp on my slackbox, and I've been reading documentation all afternoon
    and still have a very stupid question.
    Where's the root directory?

    It created the user directory /home/ftp is all I can find.
    I thought it worked kinda like httpd which I am familiar with.
    No /var/ftp or anything of the sort.

    If I ftp localhost, I can log in with a username and pass, and am in my home
    directory.

    So I made a text file in /home/ftp and typed ftp://192.168.1.100 in the browser
    window on my other computer, and it gives me a blank listing. I see the index
    but no files are in whatever directory it's showing me.

    And if I ftp from windows command prompt, it says 'connected to 192.168.1.100'
    but no further output. And nothing shows up if I type. A few seconds later it disconnects.

    I see my browser attempts in the log files but not the command prompt attempt.
    or the other way around.

    Someone clue me in?

  2. #2
    Just Joined! TuxKnight's Avatar
    Join Date
    Sep 2008
    Location
    New Zealand
    Posts
    28

    proftpd

    Hi

    To use the /var/ftp as the default ftp directory. edit /etc/passwd
    and change the user account you created home directory from

    Code:
    ftp:x:115:65534::/home/ftp:/bin/false
    to 
    ftp:x:115:65534::/var/ftp:/bin/false
    Create a file in the /var/ftp and change the ownership to the following
    Code:
    cd /var/ftp
    chown ftp:ftp testfile
    Check to see if the files show up in your browser.

    Cheers

Posting Permissions

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