A secure method to assign folder permissions is to verify access rights carefully and use approved tools.
A secure method to assign folder permissions is to verify access rights carefully and use approved tools.
You might consider using chown -R justin:www-data followed by chmod -R 770. This sets ownership while permitting the www-group full permissions. Running these commands likely requires root privileges, so you could use sudo bash or prepend sudo to them.