Create accounts to give access in ftp

Discussion in 'Server Operation' started by hhhhhh, Jun 2, 2009.

  1. hhhhhh

    hhhhhh New Member

    Hello folks,

    I have installed in my server the proftpd following this tutorial: http://www.howtoforge.com/perfect-server-ubuntu8.04-lts

    Now I want to give ftp access to my coder, only for few folders and files. So, I have the files on the server:

    var/website_one/file1.php
    var/website_one/file2.php
    var/website_one/file3.php
    var/website_one/admin/file1.php
    var/website_one/admin/file2.php
    var/website_one/admin/file3.php
    var/website_one/admin/file4.php

    How can I give access to:

    var/website_one/file1.php
    var/website_one/admin/file1.php

    Anyone can help me?

    Thank you
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Create a new system user and make /var/website_one the home directory of that user.
     
  3. hhhhhh

    hhhhhh New Member

    Thank you falko,

    I used filezilla and when I pressed on the first folder (to go inside var/ ) the server allow it.

    How can I block it to give access only in that folder /var/website_one and don't to up levels?

    Thank you
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Add
    Code:
    DefaultRoot ~
    to your proftpd.conf.
     

Share This Page