I forgot all about that option. Thanks for telling me about that. But
woudn't it still need to be run as a different user?

----------------------------------------------
Brandon Ramirez
UnrealHost Head System Administrator
www.unrealhost.net

----- Original Message -----
From: "Sean C Truman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 4:24 PM
Subject: Re: Urgent Help, please!


> Brandon,
>
>       If you configure PHP --with-vpopmail=/home/vpopmail  you can call
the
> vadduser() function from within your PHP script. This is one of the reason
> Ken created the API for vpopmail.
>
> Sean
> ----- Original Message -----
> From: "Brandon Ramirez" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 20, 2001 2:01 PM
> Subject: Re: Urgent Help, please!
>
>
> > PHP scripts are parsed, not executed. Setuid is useless with PHP. The
only
> > thing I can think of is to make your web server run as root or vpopmail
> (NOT
> > recommended) or turn the PHP script into a perl script or C program and
> make
> > it setuid-vpopmail.
> >
> > ----------------------------------------------
> > Brandon Ramirez
> > UnrealHost Head System Administrator
> > www.unrealhost.net
> >
> > ----- Original Message -----
> > From: "Sean C Truman" <[EMAIL PROTECTED]>
> > To: "Tren Blackburn" <[EMAIL PROTECTED]>; "'Sean O'Dea'"
> > <[EMAIL PROTECTED]>; "'The Guyver'" <[EMAIL PROTECTED]>;
> > <[EMAIL PROTECTED]>
> > Sent: Thursday, September 20, 2001 2:56 PM
> > Subject: Re: Urgent Help, please!
> >
> >
> > > Why dont you just compile the vpopmail in PHP and do the calls from
PHP
> > > iteself.
> > >
> > > Sean
> > > ----- Original Message -----
> > > From: "Tren Blackburn" <[EMAIL PROTECTED]>
> > > To: "'Sean O'Dea'" <[EMAIL PROTECTED]>; "'The Guyver'"
> > > <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > Sent: Thursday, September 20, 2001 1:47 PM
> > > Subject: RE: Urgent Help, please!
> > >
> > >
> > > > Scripts cannot be suid.  At least on Linux and AIX and SCO they
can't.
> > > > Can't speak for others.  You'd have to use some C program to call
> this,
> > > > or re-write it in C.
> > > >
> > > > Regards,
> > > >
> > > > Tren.
> > > >
> > > > -----Original Message-----
> > > > From: Sean O'Dea [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, September 20, 2001 12:38 PM
> > > > To: 'The Guyver'; '[EMAIL PROTECTED]'
> > > > Subject: RE: Urgent Help, please!
> > > >
> > > >
> > > > The script should be owned by vpopmail
> > > > chown vpopmail script
> > > > Set the script to run as vpopmail
> > > > chmod u+s script
> > > >
> > > > That will allow the script to have the same permissions as vpopmail
> and
> > > > it should be able to write the the directory.
> > > >
> > > > -----Original Message-----
> > > > From: The Guyver [mailto:[EMAIL PROTECTED]]
> > > > Sent: Thursday, September 20, 2001 11:37 AM
> > > > To: Sean O'Dea; [EMAIL PROTECTED]
> > > > Subject: Re: Urgent Help, please!
> > > >
> > > >
> > > > How do I do it please??
> > > > Thanks again!
> > > >
> > > > ----- Original Message -----
> > > > From: "Sean O'Dea" <[EMAIL PROTECTED]>
> > > > To: "'The Guyver'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > > Sent: Thursday, September 20, 2001 8:32 PM
> > > > Subject: RE: Urgent Help, please!
> > > >
> > > >
> > > > > The script probably needs to run setuid to the vpopmail user.
> > > > >
> > > > > -----Original Message-----
> > > > > From: The Guyver [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Thursday, September 20, 2001 11:30 AM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: Urgent Help, please!
> > > > >
> > > > >
> > > > > Hello there,
> > > > > I'm in a desperate need to write a PHP script that creates a new
> > > > > mailbox with vpopmail 4.10.35 I've written everything correctly
but
> > > > > when I use exec or system I always
> > > > end
> > > > > up with this error:
> > > > >
> > > > > Error: Unable to chdir to vpopmail/domains directory
> > > > >
> > > > > please help me it's very urgent if anybody has a clue I'll
> appreciate
> > > > > so much.
> > > > >
> > > > > Guyver
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>

Reply via email to