docker-pihole-sync icon indicating copy to clipboard operation
docker-pihole-sync copied to clipboard

bad ownership or modes for directory /root

Open geekaz01d opened this issue 2 years ago • 4 comments

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

geekaz01d avatar Jan 01 '23 01:01 geekaz01d

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.

geekaz01d avatar Jan 01 '23 21:01 geekaz01d

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

devzwf avatar Jan 01 '23 22:01 devzwf

I think the appropriate solution for a problem like this is to document it, not code around it.

geekaz01d avatar Jan 02 '23 01:01 geekaz01d

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.

helfrichmichael avatar Oct 15 '23 23:10 helfrichmichael