I have problems giving my FTP user who does not have sudo rights, write permission to /var/www.


How can I give the FTP user write permission to /var/www & subfolders only?

ls -ld says:

1@1:/var/www$ ls -ld
drwxrwsr-x 2 root www-data 4096 Feb 17 13:44 .

Groups of ftpuser:

# groups ftpuser
ftpuser : ftpuser www-data
  • 2
    Do you have write_enable=YES in your vsftpd.conf? You won't be able to write anywhere if that's disabled, which is the default configuration. – hcsteve Feb 17 '14 at 13:29
  • What do you guys think about the permission settings on /var/www , is the drwxrwsr-x 2 root www-data 4096 Feb 17 13:44 . secure? I eventually messed a bit with chmod – user150637 Feb 17 '14 at 13:33
  • i just recognized, if i visit the webspace /var/www directory with the broser it says permission denied. – user150637 Feb 17 '14 at 13:38
  • I posted the bit about write_enable as an answer - please accept it if that solved your issue. For the browser errors, I'd suggest checking your web server logs and the web server documentation for more information. If you still need help with that issue you should post a new question. – hcsteve Feb 17 '14 at 13:54
  • I will create another question shortly to solve the issue of the permission regarding the /var/www web directory, than kyou very much for the hints thus far :) – user150637 Feb 17 '14 at 14:16

Your vsftpd.conf file should contain write_enable=YES if you want to enable write support. From man vsftpd.conf:


This controls whether any FTP commands which change the filesystem are allowed or not. These commands are: STOR, DELE, RNFR, RNTO, MKD, RMD, APPE and SITE.

Default: NO

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy