Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

hi there sorry for my english im italian. Here is what i would like to do with proftpd

i have a main user: webserver group: www-data must do anything in var/www/ and subfolders ( it actually works )

Then in var/www i have two folders: is defaultroot for user one (group one)... is OK is default root for user two (group two)... is OK

DefaultRoot /var/www/ one DefaultRoot /var/www/ two

Now the problem: all works exept user one cant write in and user two cant write in

seems to be normal cause all folders, subfolders and files in /var/www/ are owned by user webserver and group www-data but how can i resolve? how can i give privileges to user one and user two in their ows folders?

of course i dont want to set 777 to all files!

root@debian:/var/www# ls -lh drwxr-sr-x 3 webserver www-data 4.0K Jul 24 18:07 drwxr-sr-x 2 webserver www-data 4.0K Jul 25 04:41 -rwxr-xr-x 1 webserver www-data 177 Jul 23 09:42 index.html

Thanks in advice!

share|improve this question

Assuming that you've installed Apache and ProFTP from official Debian repositories, do the following,

$ chmod -R g+w /var/www/ /var/www/
$ chown -R proftpd.www-data /var/www/ /var/www/

The first command gives "write" permissions to the group and the second command changes the ownership of the docroots to user: "proftpd" and group: "www-data"

If this doesn't work, please check the "User" in /etc/proftpd/proftpd.conf and replace it that with proftpd

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.