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
I temporarily resolved the permission issue by manually adding my user to the
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?
Edit: I must add here that using
usermodis a much more sensible option for this operation [please see the comment below]
sudo adduser myusername staff