Due to the slowness of having METADATA on a network drive (where user’s home directory is located), we have an installation of Julia that has JULIA_PKGDIR set up to be in a local drive and we made a group-writable directory so all users can install packages and share with others. We have users set up with umask 0002, which is supposed to create files with rw-rw-r-- permission but the precompile files (*.ji) are created with rw------ instead. Strangely enough, the packages are downloaded and saved with proper permission. It’s only a problem with the *.ji files.
I tried to research the Julia source code (
ios_file function) and found no problem with it. The regular case of using
open does create files with proper permission so it seems that the problem seems to be isolated to precompile files only.
I know Pkg3 is coming and all of this could be moot but it bothers me why such a simple thing doesn’t work… Any idea?
julia> versioninfo() Julia Version 0.6.2 Commit d386e40c17 (2017-12-13 18:08 UTC) Platform Info: OS: Linux (x86_64-pc-linux-gnu) CPU: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell) LAPACK: libopenblas64_ LIBM: libopenlibm LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)