Tonight I decided to do some experimenting with mailman and spam
filtering, so I installed mailman on the same machine that runs
backuppc. I was surprised to see mailman complain that it was being
run as userid "backuppc", rather than as user "mailman".
I've verified this behavior using a script like the one suggested in
the FAQ:
#!/usr/bin/perl
printf "Content-type: text/plain\n\n";
printf "\n";
printf("My userid is $> (%s)\n", (getpwuid($>))[0]);
which outputs (via apache):
My userid is 1204 (backuppc).
I've tracked the problem as far as the apache configuration for
backuppc is file /etc/httpd/webapps.d/BackupPC.conf which is:
User backuppc
Group backuppc
<Directory /var/www/cgi-bin/BackupPC>
AuthName "Backup Admin 1"
AuthType Basic
AuthName "BackupPC 1"
AuthUserFile /etc/BackupPC/htpasswd
Require user backuppc
Require valid-user
</directory>
If I remove the "User" and "Group" directives, BackupPC_Admin
complains:
Error: Wrong user: my userid is 75, instead of 1204(backuppc)
FWIW, here are the permissions for BackupPC_Admin:
-rwxr-x--- 1 backuppc apache 3913 May 21 14:06 \
/var/www/cgi-bin/BackupPC/BackupPC_Admin*
What need I change so that user backuppc applies only to scripts run
from /var/www/cgi-bin/BackupPC ???
Thanks.
David
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/