This is the second time I've installed BackupPC, and there's always been a big onus on the end-user to make sure that BackupPC runs as the backuppc user.
I'm thinking you can add a few lines of code that, along with not breaking anything, can possibly fix the issue for the end user without their intervention. I've written a little test script that "works for me". It creates a blank file named "test" in pwd. Execute the script as root, as only root can setuid (I think?). See the code sample below: #!/usr/bin/perl use strict; my $user; my $euser; my $bpc_user; # Perl apparently tracks uid, gid, euid, and ugid. # $< uid # $> euid # $( gid # $) egid # This script simply tests this fact, and makes sure that we can easily # change effective permissions without user intervention. &whoami; print "\nAttempting to setuid backuppc...\n\n"; $bpc_user = getpwnam("backuppc"); if(! $bpc_user){ print "User 'backuppc' not found!\n"; } else { $< = $bpc_user; $> = $bpc_user; &whoami; print "Touching test.\n"; `touch test`; } sub whoami{ $user = getpwuid($<); $euser = getpwuid($>); print "Real UID - $<: $user \n"; print "Effective UID - $>: $euser\n"; } ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/