# How do I set permissions for a binary executable artifact?

**URL:** <https://discourse.julialang.org/t/how-do-i-set-permissions-for-a-binary-executable-artifact/109791>\
**Category:** General Usage\
**Tags:** artifacts\
**Created:** [February 6, 2024, 10:23am UTC](https://discourse.julialang.org/t/how-do-i-set-permissions-for-a-binary-executable-artifact/109791 "2024-02-06T10:23:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![evanderveer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evanderveer/32/37519_2.png) [@evanderveer](https://discourse.julialang.org/u/evanderveer)\
**Post date:** [February 6, 2024, 10:23am UTC](https://discourse.julialang.org/t/how-do-i-set-permissions-for-a-binary-executable-artifact/109791/1 "2024-02-06T10:23:38Z")

</div>

I am trying to use Artifacts.jl to download a binary executable as part of a package I am developing. It seems like the executable file is downloading just fine when I ] add \<package\_name\>, but after installation the file does not have execution permissions. Is there a way to set the permissions during installation of the package?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [February 6, 2024, 10:37am UTC](https://discourse.julialang.org/t/how-do-i-set-permissions-for-a-binary-executable-artifact/109791/2 "2024-02-06T10:37:27Z")

</div>

> [@evanderveer](#):
>
> Is there a way to set the permissions during installation of the package?

You shouldn’t do that, because that’d change the tree hash of the artifact. It’d be better to understand _why_ executable permission isn’t being set correctly. Is that happening only on Windows? If so, with what version of Julia? If so, it might be [Permissions issues with arftifcats on Windows in 1.10-rc1 (and betas) - Access is denied · Issue #52272 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/issues/52272), but no one tracked down the issue yet, and someone doing that would be welcome.
