Changes between Version 1 and Version 2 of Ticket #863
- Timestamp:
- Mar 16, 2016, 9:43:50 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #863 – Description
v1 v2 3 3 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. 4 4 5 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: 5 6 7 * `umask 0077` or `umask -S u=rwx,g=,o=` if there is no consent 8 * `umask 0027` or `umask -S u=rwx,g=rx,o=` if there is a consent 9 10 New files should then automatically be created with correct permissions.