<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Stéphane, I followed your howto, however, it didn't resolved my
issue.</p>
<p>I increased the size of the default map to one million, and did
the direct user/group mapping part:</p>
<blockquote>
<p>$ cat /etc/subuid<br>
lxd:100000:1000000000<br>
root:100000:1000000000<br>
lxd:119373:1<br>
root:119373:1</p>
<p><br>
$ cat /etc/subgid<br>
lxd:100000:1000000000<br>
root:100000:1000000000<br>
lxd:2001:1<br>
root:2001:1</p>
</blockquote>
<blockquote>
<p>$ lxc config get test raw.idmap<br>
uid 119373 1000<br>
gid 2001 1000</p>
</blockquote>
<p>However, in the container:</p>
<blockquote>
<p>root@test:~# ls -lh /home<br>
total 4.0K<br>
drwxr-xr-x 54 19373 ubuntu 4.0K Jun 15 17:41 ubuntu</p>
</blockquote>
<p>there is still my truncated UID. And when I only increase the
size of the default map but don't do the direct user/group mapping
part, I had:</p>
<blockquote>
<p>root@test:~# ls -lh /home<br>
total 4.0K<br>
drwxr-xr-x 54 19373 nogroup 4.0K Jun 15 17:41 ubuntu</p>
</blockquote>
<p>Something seems wrong over here, right?<br>
</p>
<br>
<div class="moz-cite-prefix">Le 15/06/2017 à 19:13, Matlink a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:ce6701a0-9dc8-5f7e-3d90-de104133d52b@matlink.fr">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<p>Stéphane made a post to anwser this : <br>
</p>
<p><a class="moz-txt-link-freetext"
href="https://stgraber.org/2017/06/15/custom-user-mappings-in-lxd-containers/"
moz-do-not-send="true">https://stgraber.org/2017/06/15/custom-user-mappings-in-lxd-containers/</a><br>
</p>
<br>
<div class="moz-cite-prefix">Le 14/06/2017 à 16:41, Matlink a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:7edbc399-e200-a428-0ce2-38730f4d4fae@matlink.fr">
<meta http-equiv="content-type" content="text/html;
charset=utf-8">
<p>Hello community,</p>
<p>I wanted to use GUI apps in my containers, I followed the
great howto here <a class="moz-txt-link-freetext"
href="https://blog.simos.info/how-to-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/"
moz-do-not-send="true">https://blog.simos.info/how-to-run-graphics-accelerated-gui-apps-in-lxd-containers-on-your-ubuntu-desktop/</a></p>
<p>However, on my system, it happens that my uid is greater than
65535:</p>
<blockquote>
<p>$ id -u $USER<br>
119373</p>
</blockquote>
<p>When using <br>
</p>
<blockquote>
<p>lxc config set guiapps raw.idmap "uid $UID 1000"</p>
</blockquote>
<p>in the container, the mapped id is 19737, like for
.Xauthority : <br>
</p>
<blockquote>$ ls -la /home/ubuntu/.Xauthority<br>
-rw------- 1 19373 ubuntu 67 Jun 14 07:46
/home/ubuntu/.Xauthority<br>
<br>
</blockquote>
Has anyone ever experienced something similar?<br>
<pre class="moz-signature" cols="72">--
Matlink - Sysadmin matlink.fr
Sortez couverts, chiffrez vos mails : <a class="moz-txt-link-freetext" href="https://caf%C3%A9-vie-priv%C3%A9e.fr/" moz-do-not-send="true">https://café-vie-privée.fr/</a>
XMPP/Jabber : <a class="moz-txt-link-abbreviated" href="mailto:matlink@matlink.fr" moz-do-not-send="true">matlink@matlink.fr</a>
Clé publique PGP : 0x186BB3CA
Empreinte Off-the-record : 572174BF 6983EA74 91417CA7 705ED899 DE9D05B2</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org" moz-do-not-send="true">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users" moz-do-not-send="true">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Matlink - Sysadmin matlink.fr
Sortez couverts, chiffrez vos mails : <a class="moz-txt-link-freetext" href="https://caf%C3%A9-vie-priv%C3%A9e.fr/" moz-do-not-send="true">https://café-vie-privée.fr/</a>
XMPP/Jabber : <a class="moz-txt-link-abbreviated" href="mailto:matlink@matlink.fr" moz-do-not-send="true">matlink@matlink.fr</a>
Clé publique PGP : 0x186BB3CA
Empreinte Off-the-record : 572174BF 6983EA74 91417CA7 705ED899 DE9D05B2</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lxc-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Matlink - Sysadmin matlink.fr
Sortez couverts, chiffrez vos mails : <a class="moz-txt-link-freetext" href="https://café-vie-privée.fr/">https://café-vie-privée.fr/</a>
XMPP/Jabber : <a class="moz-txt-link-abbreviated" href="mailto:matlink@matlink.fr">matlink@matlink.fr</a>
Clé publique PGP : 0x186BB3CA
Empreinte Off-the-record : 572174BF 6983EA74 91417CA7 705ED899 DE9D05B2</pre>
</body>
</html>