I want to create a file in a directory owned by the staff group which I am a member of. Why can I not do this?
bmccann@bmccann-htpc:~$ ls -l /usr/local/lib/R/
t
Use Linux ACL (access control lists) - it is more fine-grained version of permission system,
setfacl -R -m 'group:staff:rwx' -m 'd:group:staff:rwx' /usr/local/lib/R/
This sets both active rights for directory and default rights for anything created within.
This fails to work without relogin if you've just added yourself to the staff
group, but you may set the permission only for yourself for the current session.