[lxc-users] How can a non-root user assign unique UID/GID range for LXC unprivileged containers ??

Dirk Geschke dirk at lug-erding.de
Tue Aug 21 11:39:08 UTC 2018


Hi Yasoda,

>  get the same error
> 
> lxc-start 20180817035100.984 ERROR    lxc_conf - conf.c:mount_rootfs:798 -
> Permission denied - Failed to get real path for
> "/home/oxpd/.local/share/lxc/uidranges/rootfs".

can you check the directory permissions for 

   /home/oxpd/.local/share/lxc/uidranges

I think, they should own the LXC-root but the group should 
be yours and mode 770, the group must have full access. 
Otherwise the unprivileged user can't access his own 
container configuration.

Best regards

Dirk

-- 
+----------------------------------------------------------------------+
| Dr. Dirk Geschke       / Plankensteinweg 61    / 85435 Erding        |
| Telefon: 08122-559448  / Mobil: 0176-96906350 / Fax: 08122-9818106   |
| dirk at geschke-online.de / dirk at lug-erding.de  / kontakt at lug-erding.de |
+----------------------------------------------------------------------+


More information about the lxc-users mailing list