docker-pihole-sync
docker-pihole-sync copied to clipboard
bad ownership or modes for directory /root
The path /root in container has incorrect ownership, which throws the following error in the receiver container (although the permissions are wrong on the sender it doesn't induce any errors):
Authentication refused: bad ownership or modes for directory /root
Solution:
drwxr-xr-x 1 99 users 18 Jan 1 01:24 root
cd /
chown root root
chgrp root root
drwxr-xr-x 1 root root 18 Jan 1 01:24 root
More info about this:
If I create the paths (as root on host) before setup, it doesn't happen.
The issue specifically occurs when unraid docker container configuration is used to create the path.
I think that specific to unraid. i tried to reproduce on a regular doccker host (debian ) and i did not had this issue. i will do more test
I think the appropriate solution for a problem like this is to document it, not code around it.
Any updates here? I've tried adjusting the permissions and owners to no avail.
EDIT: Adjusted recursively and that fixed the errors they are syncing now. Now to figure out why the password won't sync.