Solving the permissions problem
Posted by mholmes on 27 Jan 2017 in Activity log
We have, inevitably, the issue that folks uploading to the nfs filespace end up creating folders and files owned and grouped to themselves, instead of grouped to the loi group. WinSCP allows users to change group ownership, but for those on Macs it's not so simple, since FileZilla doesn't. Simple script to put in the root, for users to run:
# Change group of all stuff owned by current user to loi. find . -user $USER -exec chgrp loi {} \; #chmod directories to rwxrwx---, and set the setgid bit find . -type d -user $USER -exec chmod 2770 {} \; #chmod all files to rwxrwx--- find . -type f -user $USER -exec chmod 0770 {} \;
This entry was posted by Martin and filed under Activity log.