RStudio Server: multiple users working on shared folder
Hello,
I have a question: I have a RStudio Server running on a Linux
system (Ubuntu Server). There are multiple users within a
rstudio-server group accessing a shared directory through a
symbolic link . The existing files have all group permissions to
allow read and write operations on that files. Each user can open
an existing file, write new lines of code an save this file. But
when a user creates a new file in RStudio Server web interface
(lets say a R script within the shared folder) then the others can
open it but they cannot make changes to it. Is there a way to allow
RStudio Server to unmask created files? Or which settings should I
make to linux, to allow this.
I would be very grateful for any suggestions.
Best
Roger
Comments are currently closed for this discussion. You can start a new one.
2 Posted by Roger on 04 Jul, 2012 04:55 PM
Hello,
I am still having problems allowing users to work on the same code. Here are some more infos about my server: its a ubuntu server (latest version) which uses pam authentication. I tried to set umask for rstudio-server in /ect/pam.d/ which did not work also setting umask for logins did not work. When users log in with ssh they can read , write and modify files in the shared folder. In rstudio console each user has the umask 0002, which produces -rw-r-- permissions for new files created in rstudio.
Best,
Roger
Support Staff 3 Posted by Josh Paulson on 05 Jul, 2012 03:36 PM
Roger,
Thanks for reporting this and we're not completley sure how to set a umask for all RStudio users, but here are some leads:
http://support.rstudio.org/help/discussions/problems/2740-pam_mount
Let me know if you are able to get this working,
Josh
4 Posted by Roger on 05 Jul, 2012 05:04 PM
Thank you so much for your hints!!! Got it finally. Here is what I did:
1. all users are in the same primary group
2. I gave the shared folder (is symbolic link in users home) the user group as owner
3. I changed chmod g+s for the shared folder, so all new files would get the group rights (new files will be given the group affiliation of the directory)
4. in rstudio server I call Sys.umask(mode="0002") to set the unmask then all new files will get -rw-rw-r-- as permissions.
Now the users can read and write all files created by other users within the shared folder.
Anyway, I think the best would be to manage permissions with pam, looking forward to this feature. You guys did a great job with developing this nice tool! Keep doing!
Bye
Roger
Support Staff 5 Posted by Josh Paulson on 06 Jul, 2012 10:09 PM
Roger,
Awesome! Glad to hear you were able to get this working and also thanks for posting the steps to do so. This is helpful for us as well as other users looking on. I'll try to message back here when we implement PAM session if you'd like to test.
Thanks again,
Josh
Josh Paulson closed this discussion on 06 Jul, 2012 10:09 PM.