On Fri, Nov 4, 2022, at 11:54 AM, Dave Bachmann wrote: > > 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.
Just to verify: you mean that you changed the "User=" and "Group=" lines in the "[Service]" section in your service file? Did you "sudo systemctl daemon-reload" after changing these? What does "sudo service backuppc status" say? This really smells like a systemd execution problem to me. The only thing I see BackupPC doing to verify its uid is checking the value of '$>' during startup; if it thinks its process uid is 33, that's gotta be because systemd is invoking it as that user. _</email>_ Rob Sheldon _______________________________________________ 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/