Hello Greg,

Thank you for answering.
Something about permissions/features of the underlying fs was my first idea
too.

I don't understand how (or why) can a process running by user backuppc
write a filesystem as a different user..

backuppc@<host>:~$ id
uid=108(backuppc) gid=114(backuppc) groups=114(backuppc)

That's the default for my debian installation.

I think i tracked down the first error line
G bpc_path_create: can't create f%2fetc%2f/attrib (errno 2)
here: 
*https://github.com/backuppc/rsync-bpc/blob/dcb672942e4094849ff035506729a998b340e7e3/backuppc/bpc_dirOps.c#L62
<https://github.com/backuppc/rsync-bpc/blob/dcb672942e4094849ff035506729a998b340e7e3/backuppc/bpc_dirOps.c#L62>*

and that's a mkdir with permission 0777.

Issuing a:
mkdir -m 0777 attrib
in the *~/pc/<backuppedhost>/0/f%2fetc%2f* directory -> the attrib
directory is correctly created with the right permissions:

drwxr-x--- 1 backuppc backuppc  20 Sep  4 18:21 .
drwxr-x--- 1 backuppc backuppc 139 Sep  4 03:23 ..
drwxrwxrwx 1 backuppc backuppc   2 Sep  4 18:21 attrib
-rw-r----- 1 backuppc backuppc   0 Sep  4 03:20
attrib_00a0ed124f6656e346bf0098285fa240
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 falternatives
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 fapparmor.d
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 fapt
drwxr-x--- 1 backuppc backuppc   2 Sep  4 03:20 fbackup.d
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 fcloud
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 fcron.d
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 fcron.daily
drwxr-x--- 1 backuppc backuppc   2 Sep  4 03:20 fcron.monthly
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 fcryptsetup-initramfs
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 fdefault
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 fdehydrated
drwxr-x--- 1 backuppc backuppc   2 Sep  4 03:20 fdpkg
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 fgrub.d
drwxr-x--- 1 backuppc backuppc   2 Sep  4 03:20 fmdadm
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 fnginx
drwxr-x--- 1 backuppc backuppc   3 Sep  4 03:20 fssh

So I really don't understand why this fails.
There is something about this attrib directory, because I get this very
same error for every debian host I add.




> ---------- Forwarded message ----------
> From: Greg Harris <ghar...@teamexpansion.org>
> To: "General list for user discussion, questions and support" <
backuppc-users@lists.sourceforge.net>
> Cc:
> Bcc:
> Date: Fri, 2 Sep 2022 13:53:10 +0000
> Subject: Re: [BackupPC-users] errors on network-mounted pool filesystem
> I’d suspect that the rsync_bpc call is using a user that isn’t what you
expect.  However, I can’t find the exact setting I was expecting.  In my
setup, the group that owns the backup location is the web group, (I think
www for Ubuntu), not backuppc, and backuppc is part of the web group.
>
> Thanks,
>
> Greg Harris
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to