Re: [BackupPC-users] 4.1.5 Error: Wrong user: my userid is 33, instead of 126(backuppc)
Thanks a lot Alex for pointing me in the right direction! I had indeed read and applied the fix suggested on the Arch wiki 6 months ago to make SUID work. When the package updated last weekend I had completely forgotten about it. I reapplied it now and it is working again. /~JC On 19/12/17 17:50, Alexander Kobel wrote: On 12/19/2017 05:07 PM, JC Francois wrote: Probably you've seen those before - but just in case you didn't: Do the hints from the Arch wiki help? https://wiki.archlinux.org/index.php/BackupPC#The_webserver_user_and_the_suid_problem -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
Re: [BackupPC-users] 4.1.5 Error: Wrong user: my userid is 33, instead of 126(backuppc)
On 12/19/2017 05:07 PM, JC Francois wrote: Hi, I have been successfully running backuppc on an archlinux server for a couple of months. Since the last update of the arch package I am no longer able to access the web GUI. [...] Hi, are you sure that the backuppc package is the culprit, rather than an apache update or some other, seemingly unrelated, system package that might have changed the setuid behavior? IIUC, in your setup, the *interpreter* needs to be run as user backuppc, that is /usr/sbin/perl; did you have the setuid bit set on that file before the update? I read the comment in the documentation about setuid emulation not being supported on many systems but it worked until the last backuppc update and perl has not been updated since september. Probably you've seen those before - but just in case you didn't: Do the hints from the Arch wiki help? https://wiki.archlinux.org/index.php/BackupPC#The_webserver_user_and_the_suid_problem I'm not using this setup, but I realize that one difference is user:group backuppc:http instead of backuppc:backuppc for BackupPC_Admin. Also, the description there suggests that if your approach worked before, it was a bug rather than a feature... Best, Alex smime.p7s Description: S/MIME Cryptographic Signature -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/
[BackupPC-users] 4.1.5 Error: Wrong user: my userid is 33, instead of 126(backuppc)
Hi, I have been successfully running backuppc on an archlinux server for a couple of months. Since the last update of the arch package I am no longer able to access the web GUI. when trying to load the `BackupPC_Admin` page I get the message below: Error: Wrong user: my userid is 33, instead of 126(backuppc) This script needs to run as the user specified in $Conf{BackupPCUser}, which is set to backuppc. This is an installation problem. If you are using mod_perl then it appears that Apache is not running as user backuppc. If you are not using mod_perl, then most like setuid is not working properly on BackupPC_Admin. Check the permissions on /usr/share/backuppc/cgi-bin/BackupPC_Admin and look at the documentation. I verified the rights on the file: -rwsrwxr-- 1 backuppc backuppc 3.9K Dec 10 12:05 BackupPC_Admin and the cgi-bin folder is owned by root:root but has (r-x) rights for others. My kernel is 4.14.5-1-ARCH. There are no errors in /var/log/httpd/errors_log. I read the comment in the documentation about setuid emulation not being supported on many systems but it worked until the last backuppc update and perl has not been updated since september. Thanks for your help! -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List:https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki:http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/