Re: [BackupPC-users] BackupPC_Admin displayed instead of executed on Apache
2008-05-24 10:04:30
Le dimanche 18 mai 2008 à 17:28 -0500, Les Mikesell a écrit :
> Sam Przyswa wrote:
> > >
> >>> 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.
> >
> > That mean that apache must run in backuppc user or BackupPC must run in
> > www-data userid ?
>
> It doesn't matter which, but the ownership/permissions of all necessary
> files have to be set to match.
>
> > If BackupPC can run in www-data userid I will do that because I have
> > others web sites that should run in www-data userid.
>
> I'd just switch to cgi execution instead of mod_perl. You don't spend
> that much time in the web interface anyway.
If I don't use mod_perl the script BackupPC_Admin it don't start, only
displayed into the browser windows.
> > Thanks for your help, but it's a strange BackupPC's feature or behavior
> > (perhaps a bug...)
>
> It's just the way mod_perl and apache work. Mod_perl runs as part of
> the apache process, so it doesn't have a choice about running under a
> different uid. The tradeoff is that starting a separate process with
> the cgi interface is a bit slower, but it gives the other process a
> change to switch id's. Another option is to run a separate instance of
> apache/mod_perl on a different port but I don't think it is worth the
> trouble.
Now with mod_perl I changed $Conf{BackupPCUser} to www-data (Apache
user) it start but sometime I loose the permission as admin user or
sometime I got:
This script needs to run as the user specified in $Conf{BackupPCUser},
which is set to root.
My previous config 2.1.2 running since 4 years don't work anymore with
the 3.1.0.
I prefer suppress security features, perhaps make it running as root but
make it WORKING !
Please I have to backup my machine PLEASE.
Please give me a patch or a way to make BpPC working on Debian, Apache2,
and mod_perl (it don't work without).
Please HELP !
Sam.
-------------------------------------------------------------------------
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/
|
|
|