<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div style="font-size:12.8px">$ systemd-nspawn --directory=/os --read-only --overlay=/os/home/foobar:/tmp<wbr>/home/foobar:/home/foobar --user=foobar</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I expect the user foobar to be able to write in /home/foobar (in the container) but instead I get a Permission denied.</div></div></div></blockquote><div><br></div><div>Sorry all, I was not properly managing the underlying filesystem UID properly between the host and the guest.</div><div><br></div></div></div></div>