Open jsteel44 opened 5 years ago
Hmm, I thought this one had been fixed already... https://github.com/RSE-Cambridge/data-acc/commit/7b66bbf669137d5d97e4c46b985defab7facdcf9
Need to double check we populate Volume.Group with the correct value.
Yes the group chown looks like it is happening but the group is being populated incorrectly. I'll leave that one with you but in case it's any help, here's a stab in the dark:
internal/pkg/dacctl/actions/actions.go: request.Group = request.User
After further discussion, we actually need to change how we do the chown etc, it needs to happen on buffer create, not on buffer mount.
It looks like a persistent buffer is created with 700 permissions now and group is set to root (at least on the global directory). If that is intended that works for me.
Hmm, not sure about the root group. I was expecting it to be what Slurm specified.
It looks like a gid is assumed to be the same as a uid and so my persistent buffers have group rwx given to the wrong group. This could also lead to the chown failing if the gid doesn't exist.
Per-job buffers are unaffected. You can see below the gid is, and should be different to the uid but it incorrectly matches on the persistent buffer.
Example user:
Buffers: