What is the appropriate permission for the /var/www/wordpress directory

I installed wordpress multisite using this(https://www.vultr.com/docs/how-to-install-wordpress-on-a-lemp-configuration)..I am wondering if it is safe.

#################################################
Give the permissions of /var/www/wordpress to www-data user. It will allow future automatic updating of WordPress plugins and file editing with SFTP.

sudo chown -R www-data:www-data wordpress/
sudo usermod -a -G www-data www-data
##################################################

  • Jude
    • DEV MAN

    Hi there @O@Obinna

    Hope you're doing great !

    Although its good security practice not to allow that. Many people allow that in the interest of functionality.

    If you choose the security route you need to manually SSH into your site and update themes plugins etc using CLI

    Cheers
    Jude

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.