BackupPC-users

Re: [BackupPC-users] BackupPC_Admin displayed instead of executed on Apache

2008-05-18 14:37:17
Subject: Re: [BackupPC-users] BackupPC_Admin displayed instead of executed on Apache
From: Les Mikesell <les AT futuresource DOT com>
To: Sam Przyswa <samp AT arial-concept DOT com>
Date: Sun, 18 May 2008 13:36:57 -0500
Sam Przyswa wrote:
> 
>>> I installed BackupPC 3.1.0 (before 2.1.2 on an old machine) on new
>>> machine with Apache2 but the main script BackupPC_Admin is displayed  
>>> on
>>> browser instead of be executed !?
>>>
>>> What is the right apache2 config to run BackupPC ?
>> See the docs: 
>> http://backuppc.sourceforge.net/faq/BackupPC.html#step_9__cgi_interface
> 
> Thanks, now BackupPC_Admin tell me that it's running with the wrong UID
> (www-data ID 33) instead of backuppc userid.
> 
> I run Debian Etch with the sperl5.8.8, I set the BackupPC_Admin with uid
> and guid flag, no changes.
> 
> I set my apache2 setup for BackupPC virtualhost:
> 
> -------------------------------------
> <Directory
> "/var/apache2/backuppc">                                                      
>                                   
> allow from all
> AuthName "Backups Externes Arial Concept"
> SetHandler
> perl-script                                                                   
>         
> PerlResponseHandler
> ModPerl::Registry                                                             
>                          
> PerlOptions +ParseHeaders 
> AuthType Basic  
> AuthUserFile /etc/apache2/backups_users                                       
>                                              
> Options +ExecCGI  
> require valid-user 
> order deny,allow   
> # AllowOverride AuthConfig FileInfo Limit Options
> </Directory> 
> -------------------------------------
> 
> But I always got the same message about the wrong userid !?
> 
> I never had this problem with apache 1.33 and BPC 2.1.2 on my old Debian
> machine.

If you configure apache to use mod_perl, the apache user and backuppc 
user must be the same since mod_perl is embedded in the same process. 
If you run through the cgi interface, a separate perl process is started 
that can observe the suid bit and change effective users.

-- 
   Les Mikesell
    lesmikesell AT gmail DOT com


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/