I have a folder with 755 permissions with foo-bar:foo-bar
chown. Nginx throws an error that it can't save a file inside it, it only can when I change the folder's recursive permissions to 777. How can I allow nginx to create the files inside this folder with 755 permissions?
My user groups:
foo-bar: foo-bar www-data
www-data: www-data
Should I just add www-data
to foo-bar
group? Will this work? Or is it better to do something else?