<div dir="ltr"><div><div><div>I have been moving directories and files between my host and my container many times since more than one year with no issues. Host is Archlinux and container Fedora 24 (upgrade to 24 is quite recent: no more than 2 months).<br><br></div>I moved a directory today from host to container and this let me, for the first time, with a directory in the container owned by 65534:65534. <br><The UID 65534 is commonly reserved for <i>nobody</i>, a user with no system privileges, as opposed to an ordinary (i.e., <i>non-privileged</i>)
user. This UID is often used for individuals accessing the system
remotely via FTP or HTTP[0] ><br></div><div>From host, the directory is correctly seen as a root:root <br><br>----------------------------------------------<br># ls -al /var/lib/machines/poppy/storage/tth-blog/pelican-themes/material-TTH/static <br>drwxr-xr-x 1 root root 58 Sep 1 12:10 css/<br>----------------------------------------------<br><br></div><div>I can't change owner/group ID from inside the container, which is of course very annoying as my folders and their contents are unusable. <br><br><br></div>I didn't change anything in the way my container is mounted:<br><br></div>$ cat /etc/fstab<br>-------------------------<br><div><div>LABEL=poppy-root /var/lib/machines/poppy btrfs rw,noatime,autodefrag,compress=lzo,ssd,subvol=rootvol 0 0<br>---------------------------------<br>The container is started at boot time with systemd-nspawn@poppy.service (poppy is the container name)<br><br><br>$ systemctl status systemd-nspawn@poppy.service<br> <br>● systemd-nspawn@poppy.service - Container poppy<br> Loaded: loaded (/usr/lib/systemd/system/systemd-nspawn@.service; enabled; vendor preset: dis<br> Active: active (running) since Mon 2016-08-29 00:09:08 CEST; 3 days ago<br> Docs: man:systemd-nspawn(1)<br> Main PID: 612 (systemd-nspawn)<br> Status: "Container running."<br> CGroup: /machine.slice/systemd-nspawn@poppy.service<br> ├─612 /usr/bin/systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --<br> ├─init.scope<br> │ └─617 /usr/lib/systemd/...<br> ├─system.slice<br> │ ├─console-getty.service<br> │ │ └─991 /sbin/agetty --no...<br> │ ├─dbus.service<br> │ │ └─945 /usr/bin/dbus-dae...<br> │ ├─dovecot.service<br> │ │ ├─ 1016 /usr/sbin/dovecot<br> │ │ ├─ 1431 dovecot/lmtp<br> │ │ ├─ 1432 dovecot/anvil<br> │ │ ├─ 1433 dovecot/log<br> │ │ ├─ 1435 dovecot/config<br> │ │ ├─ 1436 dovecot/lmtp<br> │ │ ├─ 1437 dovecot/lmtp<br> │ │ ├─ 1438 dovecot/lmtp<br> │ │ ├─ 1439 dovecot/lmtp<br> │ │ ├─ 1440 dovecot/lmtp<br> │ │ ├─ 1441 dovecot/lmtp<br> │ │ ├─ 1442 dovecot/lmtp<br> │ │ ├─ 1443 dovecot/lmtp<br> │ │ ├─ 1444 dovecot/lmtp<br> │ │ ├─ 3222 dovecot/imap-login<br> │ │ ├─ 3226 dovecot/imap<br> │ │ ├─ 4129 dovecot/imap-login<br> │ │ ├─ 4167 dovecot/imap<br> │ │ ├─ 6412 dovecot/ssl-params<br> │ │ ├─14815 dovecot/imap-login<br> │ │ └─14819 dovecot/imap<br> │ ├─nginx.service<br> │ │ ├─1458 nginx: master pro...<br> │ │ ├─1459 nginx: worker proces<br> │ │ ├─1460 nginx: worker proces<br> │ │ ├─1461 nginx: worker proces<br> │ │ ├─1462 nginx: worker proces<br> │ │ ├─1463 nginx: worker proces<br> │ │ ├─1464 nginx: worker proces<br> │ │ ├─1465 nginx: worker proces<br> │ │ └─1466 nginx: worker proces<br> │ ├─opendkim.service<br> │ │ └─10182 /usr/sbin/opendki...<br> │ ├─php-fpm.service<br> │ │ ├─ 984 php-fpm: master p...<br> │ │ ├─1445 php-fpm: pool own...<br> │ │ ├─1446 php-fpm: pool own...<br> │ │ ├─1447 php-fpm: pool own...<br> │ │ ├─1448 php-fpm: pool own...<br> │ │ ├─1449 php-fpm: pool own...<br> │ │ ├─1450 php-fpm: pool www...<br> │ │ ├─1451 php-fpm: pool www...<br> │ │ ├─1452 php-fpm: pool www...<br> │ │ └─1454 php-fpm: pool www...<br> │ ├─polkit.service<br> │ │ └─10026 /usr/lib/polkit-1...<br> │ ├─postfix.service<br> │ │ ├─ 1096 /usr/libexec/post...<br> │ │ ├─ 1098 qmgr -l -t unix -u<br> │ │ ├─ 1817 tlsmgr -l -t unix -u<br> │ │ └─20925 pickup -l -t unix -u<br> │ ├─postgresql.service<br> │ │ ├─1009 /usr/bin/postgres...<br> │ │ ├─1049 postgres: checkpo...<br> │ │ ├─1050 postgres: writer ...<br> │ │ ├─1051 postgres: wal wri...<br> │ │ ├─1052 postgres: autovac...<br> │ │ └─1053 postgres: stats c...<br> │ ├─redis.service<br> │ │ └─976 /usr/bin/redis-se...<br> │ ├─saslauthd.service<br> │ │ ├─970 /usr/sbin/saslaut...<br> │ │ ├─971 /usr/sbin/saslaut...<br> │ │ ├─972 /usr/sbin/saslaut...<br> │ │ ├─973 /usr/sbin/saslaut...<br> │ │ └─974 /usr/sbin/saslaut...<br> │ ├─spamassassin.service<br> │ │ └─27341 /usr/bin/perl -T ...<br> │ ├─system-clamd.slice<br> │ │ └─clamd@amavisd.service<br> │ │ └─27332 /usr/sbin/clamd -...<br> │ ├─systemd-journald.service<br> │ │ └─904 /usr/lib/systemd/...<br> │ ├─systemd-logind.service<br> │ │ └─936 /usr/lib/systemd/...<br> │ ├─systemd-networkd.service<br> │ │ └─969 /usr/lib/systemd/...<br> │ ├─vsftpd.service<br> │ │ └─1430 /usr/sbin/vsftpd ...<br> │ └─xinetd.service<br> │ └─997 /usr/sbin/xinetd ...<br> └─user.slice<br> └─user-1000.slice<br> ├─session-c1.scope<br> │ ├─4974 login -- poisoniv...<br> │ └─4998 -zsh<br> ├─session-c2.scope<br> │ ├─ 6067 login -- poisoniv...<br> │ ├─ 6086 -zsh<br> │ └─24742 /usr/bin/python3 ...<br> └─user@1000.service<br> └─init.scope<br> ├─4991 /usr/lib/systemd/...<br> └─4993 (sd-pam) ...<br><br>Aug 29 00:09:12 hortensia systemd-nspawn[612]: See 'systemctl status amavisd.service' for details.<br>Aug 29 00:09:13 hortensia systemd-nspawn[612]: [ OK ] Stopped Amavisd-new is an interface between MTA and content checkers..<br>Aug 29 00:09:13 hortensia systemd-nspawn[612]: Starting Amavisd-new is an interfac...een MTA and content checkers....<br>Aug 29 00:09:14 hortensia systemd-nspawn[612]: [2B blob data]<br>Aug 29 00:09:14 hortensia systemd-nspawn[612]: Fedora 24 (Server Edition)<br>Aug 29 00:09:14 hortensia systemd-nspawn[612]: Kernel 4.7.2-1-hortensia on an x86_64 (console)<br>Aug 29 00:09:14 hortensia systemd-nspawn[612]: [1B blob data]<br>Aug 29 00:09:14 hortensia systemd-nspawn[612]: Admin Console: <a href="https://192.168.1.94:9090/">https://192.168.1.94:9090/</a> or https://[fe80::c7f:c3ff:fefb:25b1]:9090/<br>Aug 29 00:09:14 hortensia systemd-nspawn[612]: [1B blob data]<br>Aug 29 08:29:20 hortensia systemd-nspawn[612]: thetradinghall login: Generating systemd units for vsftpd<br>lines 65-122/122 (END)<br><br></div><div>Please can someone help me to deal with this issue?<br><br></div><div>Thank you<br></div><div><br><br>[0]<a href="http://www.linfo.org/uid.html">http://www.linfo.org/uid.html</a></div></div></div>