<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jan 25, 2017 at 10:12 PM, Witold Filipczyk <span dir="ltr"><<a href="mailto:gglater62@gmail.com" target="_blank">gglater62@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wed, Jan 25, 2017 at 08:36:23AM -0500, brian mullan wrote:<br>
> Witold<br>
><br>
> There is a tool called "fuidshift" you can use to shift the gid/uid for you.<br>
><br>
> <a href="http://manpages.ubuntu.com/manpages/xenial/man1/fuidshift.1.html" rel="noreferrer" target="_blank">http://manpages.ubuntu.com/<wbr>manpages/xenial/man1/<wbr>fuidshift.1.html</a><br>
><br>
> This previous lxc-users mailer thread can also give you some idea of its<br>
> use:<br>
><br>
> <a href="http://lxc-users.linuxcontainers.narkive.com/atlj58eG/proper-usage-of-fuidshift" rel="noreferrer" target="_blank">http://lxc-users.<wbr>linuxcontainers.narkive.com/<wbr>atlj58eG/proper-usage-of-<wbr>fuidshift</a><br>
><br>
> fuidshift will be installed along with some other "tools" if you install<br>
> the lxd-tools package:<br>
><br>
</span>> *sudo apt-get install lxd-tools*<br>
<br>
Thanks for the reply, but must be some simpler method.<br>
<br>
In lxc configuration it was:<br>
lxc.id_map = u 0 200000 65536<br>
lxc.id_map = g 0 200000 65536<br>
<br>
How to express it in lxd and pylxd?<br>
<span class="im HOEnZb"><br></span></blockquote><div><br></div><div>Short version: AFAIK that's not possible in lxd. You'd either use privileged container, or unpriv container (with the same mapping for all containers).</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>