lxc file push has the option
--uid. That is a number.
Using cloud init, I can create an user, let’s call it
I would love to be able to do
lxc file push a-file.txt my-instance/path/ --owner=foo
But lxc options are limited to pass the user id, so supposing the user id of
33, the previous imaginary command would actually be:
lxc file push a-file.txt my-instance/path/ --uid 33
Is there any plan to extend the
push command to allow us to define the owner by name and not by id?
For now, what I’ll do is a 2 step process
lxc exec my-instance -- id foo --user | \
lxc file push a-file.txt my-instance/path/ --uid `cat`
How else would you do that?