SETUP:
1) I have designated a folder in /opt/webwork/libraries named for my university, in an attempt to recreate a local library for problems we create at my institution.
2) All sections of the same course have /templates/local as a symbolic link to a subdirectory of /opt/webwork/libraries/our-institution/
3) in site.conf, I have designated wwadmin and wwdata as the userID and groupID respectively.
4) all folders and problem files in /opt/webwork/libraries/our-institution are set "chmod 775" "chown wwadmin" and "chgrp wwdata". (The sym-links are 777, wwadmin and wwdata.)
5) wwadmin is a member of wwdata in /etc/group
PROBLEM:
1) Whenever I add a blank problem to a set, a folder and problem file are automatically created: [TMPL]/local/setProblemSetName/blankProblem.pg
2) This folder and the file are both created with permissions 755, owner: www-data, group: www-data
3) Similarly for any newly created (and saved) problem within that file structure.
4) If I login through a different section of the same course and attempt to edit the newly created problem, I do not have the option to save it with the same path and filename. I must save it as a new file, despite the fact that both courses follow sym-links to the same directory.
====================================================
So, how can I coherently define my file permissions so that newly created content has the appropriate permissions, owners, groups so that instructors may edit our local problems regardless of who created them?
Thanks
-Andrew