Closed finalspy closed 2 years ago
Oh I noticed that the default system umask is 077 which could explain the openxlsx behavior.
@finalspy
Can you try this with the developmental version:
remotes::install_github("ycphs/openxlsx")
If that still doesn't work, you'll want to open an issue here instead: https://github.com/ycphs/openxlsx/issues
I'm currently using version 4.2.4 but this is a secured environment and I can't use remotes like github or update the version easily unfortunately. I'm trying to obtain an update.
Using version 4.2.5.9000
problem is still here.
I'll post to the other repo.
Issue submitted here : https://github.com/ycphs/openxlsx/issues/333
Expected Behavior
Files should be written using the system acls
Actual Behavior
For example it works properly with writexl package, But it doesn't using openxlsx. Need to set Sys.umask("0007") in .Rprofile in my case to have proper acls
Steps to Reproduce the Problem
(please attach an example xlsx file if possible)
Mount an NFS directory with specific acls
Make a script to write an xls file to this directory
Check the file rights
sessionInfo()
I don't know if this is linked to the NFS mount but I prefer to mention this specificity. What seems odd to me is that the behaviour is different from writexl and openxlsx. The former one seems right ...
Here's a file with right acls written with writexl package :
Here's another script with wrong acls with openxlsx package :
Here are the results :
And here are the ACLs for my current directory on the NFS server :
And here are the ACLs on the mounted directory (same directory but client side)