I wanted this to go to the list instead of just the original poster.
Every list I'm on seems to deal with from/to/reply-to differently :-(
I also fiddled with this for a while before I got it working. I am using
SuExecUserGroup in a virtual host to set the user id. The cgi must also
be owned by backuppc. No suid/sgid permissions.
Here is the sites-available/backuppc.
WARNING - not an apache expert.
<VirtualHost *>
ServerName backup
DocumentRoot /var/www/BackupPC
Options -Indexes -ExecCGI -FollowSymLinks
Options +Includes +SymLinksIfOwnerMatch
SuexecUserGroup backuppc backuppc
<Directory /var/www/BackupPC/>
DirectoryIndex /cgi-bin/BackupPC_Admin
AuthType Basic
AuthName "BackupPC Admin"
AuthUserFile /etc/apache2/passwd
Require user backuppc
</Directory>
<Directory /var/www/BackupPC/doc/>
DirectoryIndex BackupPC.html
</Directory>
<Directory /var/www/BackupPC/cgi-bin/>
Options +ExecCGI
SetHandler cgi-script
</Directory>
</VirtualHost>
Dan Smisko
Balanced Audio Technology
1300 First State Blvd.
Suite A
Wilmington, DE 19804
(302)999-8855
(302)999-8818 fax
[EMAIL PROTECTED]
Brian Butler wrote:
> Hi all,
>
> I have BackupPC3.0.0 installed on a Fedora Core 4 system and I've
> updated File::Rsyncd to 0.68 as required.
>
> I'm trying to get a backup of a Windows XP Pro box using rsycnd.
>
> I've installed rsyncd on the WinXP box and I've successfully backed
> up the first of several PC's.
>
> I've been struggling with this setup for about a week now and can't
> seem to get the CGI interface to work. Below is the error reported
> from the browser:
> -----------------------
> Error: Wrong user: my userid is 48, instead of 103(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
> /var/www/cgi-bin//BackupPC_Admin and look at the documentation.
> -----------------------
>
> I have tried everything I can think of to overcome this issue, but
> haven't had any success. It appears from the error that the setuid is
> not working or mod_perl is not configured correctly. I've checked
> permissions on all files and directories related to BackupPC and have
> set them appropriately as owner = backuppc and group = apache.
>
> I've checked and verified that perl5.8.6 and sperl5.8.6 are installed
> on the Fedora Core 4 server.
>
> I have other web applications running on this server, i.e.,
> SquirrelMail, SugarCRM, etc., so it would be difficult to running as a
> user other than apache.
>
> Any help will be greatly appreciated.
>
> Regards,
>
> Brian Butler
> Automation Manager
> Arc Products
> 1245 30th Street
> San Diego, CA 92154
> 619-869-4319 Direct Line
> 619-628-1022 x 319
> 619-628-1028 Fax
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/backuppc-users
> http://backuppc.sourceforge.net/
>
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/