WordPress.org

Support

Support » How-To and Troubleshooting » Owner problem with sFTP and www-data in ubuntu

Owner problem with sFTP and www-data in ubuntu

  • I have ubuntu server and have ‘www-data’ group and user. This user starting Apache and WordPress operations.
    And i have SFTP ‘username’.
    ‘username’ added to ‘www-data’ group.

    For my site root directory i running:
    chown -R www-data:www-data /home/myuser/site
    chmod -R 02775 /home/myuser/site
    chmod -R g+w /home/myuser/site

    I can edit and move files from SFTP.. All is ok.
    But i can’t edit new wordpress plugins, because WordPress creating folders and files with chmod 755.
    For fix it, I must to re-execute command:
    chmod -R g+w /home/myuser/site

    How i can fixit as default?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Owner problem with sFTP and www-data in ubuntu’ is closed to new replies.
Skip to toolbar