How to change Umask and have it persist?

Continuing the discussion from Rstudio Umask issue:

I see a couple unanswered questions related to this. We have the same issue. Our server has umask set to 22, but we need 2. Setting it in the console by sys.umask('2') works for a while, but when our sessions are restarted it seems that umask is reverted to 22. Our main issue is that quarto creates hidden files that lock other users out of building shared documents. Is there a solution to this issue?

Thanks,
-J

One possibility is that the console and the terminal are running as different users. Comare

Sys.info()["user"]

in the console with

whoami

in the terminal.

Good thinking, but it's the same user in both places.

Snap. That is my onlly idea so far.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.