Changes between Version 1 and Version 2 of Ticket #863


Ignore:
Timestamp:
Mar 16, 2016, 9:43:50 AM (8 years ago)
Author:
Nicklas Nordborg
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #863 – Description

    v1 v2  
    33Files 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.
    44
     5After 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:
    56
     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
     10New files should then automatically be created with correct permissions.