Results 1 to 2 of 2

Thread: /var/www permission question

  1. #1
    Join Date
    Mar 2006
    Beans
    201

    /var/www permission question

    hi everyone

    i am wondering if the current user:group ownership of my /var/www is secure

    i have proftpd server installed and i have added an ftp user to the www-data group via usermod -a -G www-data ftpuser

    and then i have changed the ownership of /var/www to root:www-data

    and then i have changed the flags of /var/www to 774

    is that secure?

    Thanks in advance

  2. #2
    Join Date
    Oct 2011
    Beans
    52

    Re: /var/www permission question

    the most secure way to run things would be for /var/www to be owned by the FTP user only, all the files/dirs should have maximum 755 permissions and the apache/php should either run using suphp or fastcgi under the FTP user of /var/www/

    I hope this answers your question

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •