I've written a perl cgi that zips directories of files placed on the server over netatalk (file sharing for macs).
As the users login as guests to the mac fileshare, the owners of the directories I want to zip (and then delete the originals) is "nobody". The owner of the cgi process is www-data. I'm keen to be able to get www-data to zip and delete nobody's files. Should I be using sudo? I've made a temporary short-cut to allow www-data to "sudo zip" as root which works, but sounds like an unnecessary thing to do. Can I get around this by sharing groups between www-data and nobody? Sorry for the newbie question. I'm a mac user, and permissions still seem strange. Thanks for any help Rory