This came up as a permission issue on Ubuntu 16.04. I was unable to remove some R libraries installed in /usr/local/lib/R/site-library. It turned out that I did not have permission. The directory was owned by root and the group was staff.
I temporarily resolved the permission issue by manually adding my user to the staff group.
sudo usermod -a -G staff myusername
see blockquote before using this!
That allows me to remove the libraries from IDE.
However, when I tried to look up more information on staff group and was not able to find any definite material on the topic. Not even what the group was primarily intended for. I could only guess it is used to give similar 'enhanced' access to users on certain directories.
Are there any implications of manually adding a user to the staff group?
As an aside, is there any command to know the system-wide permissions for a group? For instance, what all are the directories for which group staff will have write permission?
Thanks.
Edit: I must add here that using
adduserinstead ofusermodis a much more sensible option for this operation [please see the comment below]
sudo adduser myusername staff