Console Sys.umask doesn't affect new file permissions

Our server umask is set to 0022 and I would like to set it to 0002 (allow group read and write). When I set umask in the command line, the setting sticks and new files created from the command line respect the new setting. However, new files created through RStudio's console do not follow the new umask settings and instead don't grant group write permissions.

I also attempted to set umask through the console (Sys.umask("002")), but that didn't have any effect. The files created that way still don't have group permissions, and checking umask at the command line shows it is never affected by the console command.

This issue was reported earlier but never received a reply, here : Rstudio Umask issue Hopefully this time I'll get a solution?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.