Hello Michael,

"hom...@163.com":
>     Buf if I set the nfs branch as the first rw branch, as:
>         mount -t aufs -o br=/nfsmountpoint=rw:/home/base/rootfs=ro none 
> /var/lib/lxc/containers/{lxcname}/rootfs
>     the LXC can start up in unpreviliged mode, but I can't modify the files 
> which's ownner is not root. It seems not working in unpreviliged mode.
>     For example, it will fail to run: "useradd {newuser}" in the  container's 
> bash. The result is : "useradd: failure while writing changes to /etc/shadow"

First of all, you need to confirm that your nfs client have a writable
acess right to your nfs server.  I guess you already checked some
permission bits on your dirs and files.  But how about on nfs nfs
server, especially sec=, fsid=, and no_root_squash export options?  One
simple way to check is a superuser on your nfs client create and write
to a file on nfs server.


J. R. Okajima

Reply via email to