# Precompile files are generated not according to umask

**URL:** <https://discourse.julialang.org/t/precompile-files-are-generated-not-according-to-umask/8305>\
**Category:** General Usage\
**Created:** [January 12, 2018, 5:57am UTC](https://discourse.julialang.org/t/precompile-files-are-generated-not-according-to-umask/8305 "2018-01-12T05:57:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tk3369](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tk3369/32/2824_2.png) [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Post date:** [January 12, 2018, 5:57am UTC](https://discourse.julialang.org/t/precompile-files-are-generated-not-according-to-umask/8305/1 "2018-01-12T05:57:35Z")

</div>

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](https://github.com/JuliaLang/julia/blob/release-0.6/src/support/ios.c) (`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?

My config:

```julia
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)

```
