PDA

View Full Version : Create accounts to give access in ftp


hhhhhh
2nd June 2009, 22:07
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

falko
3rd June 2009, 17:51
Create a new system user and make /var/website_one the home directory of that user.

hhhhhh
3rd June 2009, 18:13
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

falko
4th June 2009, 18:25
Add
DefaultRoot ~
to your proftpd.conf.