From: Lennart Poettering Date: Thu, 16 Feb 2017 13:38:05 +0000 (+0100) Subject: man: document that user namespacing complicates file copies X-Git-Tag: v233~80^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa10469e17bd145c5d5c8c9b93438a0ee74d1ecf;p=thirdparty%2Fsystemd.git man: document that user namespacing complicates file copies --- diff --git a/man/systemd-nspawn.xml b/man/systemd-nspawn.xml index 17c14e9f22d..96f8c3a61fd 100644 --- a/man/systemd-nspawn.xml +++ b/man/systemd-nspawn.xml @@ -474,7 +474,12 @@ Note that the picked UID/GID range is not written to /etc/passwd or /etc/group. In fact, the allocation of the range is not stored persistently anywhere, - except in the file ownership of the files and directories of the container. + except in the file ownership of the files and directories of the container. + + Note that when user namespacing is used file ownership on disk reflects this, and all of the container's + files and directories are owned by the container's effective user and group IDs. This means that copying files + from and to the container image requires correction of the numeric UID/GID values, according to the UID/GID + shift applied.