I am trying to to view the groups that belong to a directory and to enable www-data to be an admin of a directory so I am able to delete files that are within it using php unlink functionality. I have looked on the net and tried a number of things which chgrp and chmod etc but I am not getting anywhere. Could someone point me in the right direction. I believe I am just doing things in the wrong order and need some guidance. I know a little bit of linux but not a great deal and I think this is my trouble.Context:The folder is within a NAS drive. Apache is setup to point to the NAS drive and content is served as expected. However, when it comes to deleting files from a sub folder I recieve the unlink permission denied error within php (assuming this is due to www-data not having access to delete from the folder)
View a directories groups and setup www-data as an admin of a directory to allow content deletes
linux;apache httpd