id summary reporter owner description type status priority milestone component resolution keywords cc 863 Secondary analysis scripts should set permissions on created files in ProjectArchive Nicklas Nordborg Nicklas Nordborg "This is related to #864. Files generated on the project archive file server by secondary analysis scripts should by default only be readable/writable by the user. If a Case can be found that has Consent=Yes the permission on the generated files can be changed so that the group has read permission as well. Permissions on directories should follow the same pattern, but they also need ""execute"" permission. After investigating the `umask` command (https://en.wikipedia.org/wiki/Umask) it seems like this would be relatively simple by including just one line at the beginning of the script: * `umask 0077` or `umask -S u=rwx,g=,o=` if there is no consent * `umask 0027` or `umask -S u=rwx,g=rx,o=` if there is a consent New files should then automatically be created with correct permissions. " task closed major Reggie v4.3 net.sf.basedb.reggie fixed