[suPHP] Best configuration for virtual users

Jorge Bastos mysql.jorge at decimal.pt
Mon Mar 31 16:07:32 CEST 2008


The files are owned by (for a virtualhost example, other vhosts have another
uid per each one):

#5014 for UID
#4901 for GID




> -----Original Message-----
> From: Dan Mahoney, System Admin [mailto:danm at prime.gushi.org]
> Sent: domingo, 30 de Março de 2008 22:50
> To: Jorge Bastos
> Cc: suphp at lists.marsching.biz
> Subject: Re: [suPHP] Best configuration for virtual users
> 
> On Sun, 30 Mar 2008, Jorge Bastos wrote:
> 
> > Hi,
> >
> >
> >
> > I'd like to use suphp for virtual users, i don't have system users,
> all them
> > are based on uid and gid.
> >
> > For example, for website XXl.com, I have an ftp user that is
> retrieved from
> > a sql database with uid=5015 and gid=4901.
> 
> Okay, so what user owns the files?
> 
> You're still likely to be at the mercy of your filesystems permissions
> here, somewhat.  Getting PHP to run as a given user (however you
> determine
> it) is only half the battle.
> 
> That said, I don't know if running suPHP in "force" mode will let you
> work
> if you try to run it as users who do not exist on the system level.  I
> believe suphp needs a username, not a UID.
> 
> I imagine patching suPHP to do this is fairly simple, but I don't
> believe
> it will work as such out of the box.
> 
> -Dan
> 
> --
> 
> "One...plus two...plus one...plus one."
> 
> -Tim Curry, Clue
> 
> --------Dan Mahoney--------
> Techie,  Sysadmin,  WebGeek
> Gushi on efnet/undernet IRC
> ICQ: 13735144   AIM: LarpGM
> Site:  http://www.gushi.org
> ---------------------------





More information about the suPHP mailing list