[lxc-users] Unprivileged containers with /home on NFS, chown not permitted

Kaj Wiik kaj.wiik at iki.fi
Tue Feb 19 22:23:59 UTC 2019


Hi!

I have set up an unprivileged container with bind mount /home from NFS
share mounted on host.

The /home directory has been mapped to root in the container:
printf "uid 42000 0\ngid 42000 0\n" | lxc config set container raw.idmap -

The problem is that chown does not work, e.g.:
chown: changing ownership of '/home/autossh/.ssh': Operation not permitted

If I change the target directory to a 'normal' one instead of NFS mounted,
everything works.

Any ideas, please....

NFS v3 and v4, lxc --version 3.0.3

Thanks,
Kaj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20190220/b20189d6/attachment.html>


More information about the lxc-users mailing list