I’m trying to run rsyncd (rsync daemon) in an unprivileged container and it puzzles me.
It seems that whatever I do, the files that get sent to the rsync daemon, get uid/gid nobody/nogroup (Debian so not nobody/nobody).
I tried: chroot no, numeric-ids yes, target dir with a+rwx, uids/gids that are made accessible to the container. This is macOS Mojave ryncing to Debian 10 in a unprivileged container on Proxmox. I need a bigger brain than my own for this. At least that shouldn’t be hard. Thanks
Can you show the numeric uid/gid of the source files you’re sending to rsyncd, and also the output of lxc config show <instance> --expanded for your rsyncd container.
Also, are you running rsyncd as root inside the container?
— Control groups —
Cgroups: enabled
Cgroup v1 mount points:
/sys/fs/cgroup/systemd
/sys/fs/cgroup/net_cls,net_prio
/sys/fs/cgroup/cpu,cpuacct
/sys/fs/cgroup/rdma
/sys/fs/cgroup/perf_event
/sys/fs/cgroup/hugetlb
/sys/fs/cgroup/memory
/sys/fs/cgroup/blkio
/sys/fs/cgroup/devices
/sys/fs/cgroup/cpuset
/sys/fs/cgroup/pids
/sys/fs/cgroup/freezer
Cgroup v2 mount points:
/sys/fs/cgroup/unified
Cgroup v1 clone_children flag: enabled
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled
— Misc —
Veth pair device: enabled, loaded
Macvlan: enabled, not loaded
Vlan: enabled, not loaded
Bridges: enabled, not loaded
Advanced netfilter: enabled, not loaded
CONFIG_NF_NAT_IPV4: missing
CONFIG_NF_NAT_IPV6: missing
CONFIG_IP_NF_TARGET_MASQUERADE: enabled, not loaded
CONFIG_IP6_NF_TARGET_MASQUERADE: enabled, not loaded
CONFIG_NETFILTER_XT_TARGET_CHECKSUM: enabled, not loaded
CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled, not loaded
FUSE (for use with lxcfs): enabled, not loaded
Additional: I run Samba in the same container (its meant to be a fileserver), hence the uid/gid mappings, this seems to works fine from the clients in the network.