Skip to content

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

@proofrock

Description

@proofrock

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions