Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set permissions on downloaded files/archives #63

Open
dadgar opened this issue May 8, 2017 · 13 comments
Open

Set permissions on downloaded files/archives #63

dadgar opened this issue May 8, 2017 · 13 comments

Comments

@dadgar
Copy link
Contributor

dadgar commented May 8, 2017

It would be nice to be able to optionally set the permissions on downloaded artifacts.

Cross linking to Nomad issue: hashicorp/nomad#2625

@jshuping
Copy link

It would be nice to support specifying ownership as well.

@gauravyadav01
Copy link

Is there any update on this? Are we going to bring it soon?
thanks

@mwhooker mwhooker closed this as completed Nov 9, 2017
@mwhooker mwhooker reopened this Nov 9, 2017
@mwhooker
Copy link
Contributor

mwhooker commented Nov 9, 2017

oops, sorry, reopening because I thought this was a packer issue!

@lgfausak
Copy link

Ran in to this using hashi-nomad, I was expecting the result (unpacking a tar.gz from https) to have the permissions from the tar czpf. Instead, I get a version of the file that has different file permission bits set, unexpected.

@rafaelpirolla
Copy link

Bumped into this once again in nomad sadly. :(

@shantanugadgil
Copy link

Any work going on on this? I keep feeling a need for this for downloaded binaries, for raw_exec type of jobs. 👀

Currently I am making do with chmod +x in the command option of the task.

@langmartin
Copy link
Contributor

A workaround for permissions is to package the file in a tar or zip archive, permissions are preserved when decompressing.

@HarryHarcourt
Copy link

A workaround for permissions is to package the file in a tar or zip archive, permissions are preserved when decompressing.

I don't think this is true, I tried this and it still decompressed it as root. Would love this to be fixed

@mister2d
Copy link

mister2d commented May 3, 2021

Please fix. Please fix. Allow a chmod/chown type abstraction and all will be well to close this issue.

@danishprakash
Copy link

I'd like to work on this, is there a consensus on whether something like this should be supported or not? cc/ @dadgar

@shantanugadgil
Copy link

Any work for this? Could this be atleast implemented for the single file download mode? (mode = file)

@danishprakash
Copy link

Totally forgot about this issue. I think I'll take a shot at this over the weekend, hopefully, someone from the team can respond in the meantime.

@inflatador
Copy link

Any luck on this one? It would make nomad's exec driver a lot more useful.
Thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests