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
##################################################