My old server is dying, I've purchased a new machine to replace it, and am
having difficulties getting BackupPC working properly.
The old server has been running various LTS versions of Ubuntu and BackupPC for
at least 10 years and both it and the new server are now running Ubuntu 22.04.1
with perl 5.34.0.
I've configured BackupPC on the new server with all the same requested settings
as was on the old server and had even predefined the user and group backuppc to
match the same UIDs as on the old server to ensure compatibility with the
existing USB data drive. I've compared configure.pl on both machines and have
noticed no significant differences.
I am running into the setuid problem, eg. when running it I receive the
following message: "Error: Wrong user: my userid is 33, instead of
117(backuppc)" where userid 33 = www-data.
/etc/systemd/system/backuppc.service has both user and group set to backuppc.
BackupPC_Admin has the following attributes:
-r-sr-xr-x 1 backuppc backuppc 3971 2022-11-03 10:38 BackupPC_Admin.
I've reviewed the section "The CGI script doesn't run; how do I fix it?", but I
still don't quite understand how to fix it. The testsetuid script returns root
when run by root and my name when I run it as myself; it does not execute when
run by user backuppc.
Any thoughts and suggestions gratefully accepted as I continue to lose my
remaining hair.
TIA,
Dave
_______________________________________________
BackupPC-users mailing list
[email protected]
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/