Thanx for the suggestion! I had set up the backuppc UIDs right after installing Ubuntu and neither the user nor group IDs from the old server had been assigned then. I have since run find for both the user (117) and group (126) and, with the exception of the numbered /proc files, all files and folders found were clearly associated with BackupPC.
I expect I still have the option of using mod_perl and SCGI, but until I discover why I'm having this problem, I'll be suspicious of other problems lurking unseen. Dave ________________________________ From: jbk <j...@kjkelra.com> Sent: Saturday, November 5, 2022 07:19 To: Dave Bachmann <davebachm...@hotmail.com>; backuppc-user <backuppc-users@lists.sourceforge.net> Subject: Re: [BackupPC-users] Setuid problem I think your problem is exactly this step as the error you are getting says: 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. During system install other system daemons have been assigned the same UID's as you have assigned the backuppc user and httpd and their owned files. I've gone through this process and it is a good afternoons worth of painstaking hunting down the daemons in etc/passwd and changing their and their owned files UID's first prior to installing backuppc and httpd (apache). It's painful but you get to learn some other tools to search out and make changes. Fortunately I don't have to do it more often than every ten years. On 11/4/22 14:54, Dave Bachmann wrote: 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 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/