Change document root ftp from / to web - how?

Discussion in 'Installation/Configuration' started by tom, Apr 20, 2006.

  1. tom

    tom Member

    I would like to change the document root for the ftp clients from "/" to "/web".

    In /proftpd.conf I find this entry:

    Is it possibly to change it to "/web" so that the client can't change and see the .spamassassin, maildir etc. directory?

    tom
     
  2. falko

    falko Super Moderator

    You can try
    Code:
    DefaultRoot ~/web
    Restart Proftpd afterwards.
     
  3. tom

    tom Member

    I've already tried to do that but it didn't work.

    tom
     
  4. till

    till Super Moderator

    Have you asked the guys at the proftpd mailing list, if such a DefaultRoot string is supported?
     
  5. tom

    tom Member

    No, but I will do it :)

    tom
     
  6. falko

    falko Super Moderator

  7. tom

    tom Member

  8. falko

    falko Super Moderator

    And what exactly happens when you use
    Code:
    DefaultRoot ~/web
    ? Any error messages?
     
  9. rykoala

    rykoala New Member

    Wouldn't you just change their home directory in /etc/passwd? That's what I've done in the past on my other servers, but I'm brand new to ISPConfig so maybe it wouldn't like that. I don't see why it wouldn't work though.
     
  10. falko

    falko Super Moderator

    Don't do it! It wil break dependencies, for example your users' procmail recipes won't work anymore!
     
  11. Stanev

    Stanev New Member

    It must be:

    DefaultRoot "~/web"

    not
    DefaultRoot ~/web
     
  12. tom

    tom Member

    Great, it's working now :)

    tom
     

Share This Page