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

Way to generate files that are not owned by root? #244

Open
proofrock opened this issue Apr 26, 2024 · 0 comments
Open

Way to generate files that are not owned by root? #244

proofrock opened this issue Apr 26, 2024 · 0 comments

Comments

@proofrock
Copy link

proofrock commented Apr 26, 2024

Hi!
thanks for this very, very fine tool! You saved my day :-)

A question though: is it possible to assign ownership to generated files/dirs other than root? I use this from a non-priv user (but for the fact that it has the docker group membership), it's quite annoying to sudo myself just to reassign ownership, and it doesn't fit well in my make-based workflow.

I of course realize that the docker container runs as root... Some ideas I wanted to explore:

  • use --user with docker... but I cannot test it, as it is hidden away;
  • attach a post-build hook with a chown -R $(id -u):$(id -g) ..., but there's not such a hook;
  • ...?

Thanks for your time,

 G.
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

1 participant