[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] caddvsite error
- Subject: Re: [cobalt-users] caddvsite error
- From: "Charles Williams \(CEO\)" <hosting.mailing.list.account@xxxxxxxxxxxxxxx>
- Date: Fri May 18 01:38:36 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
----- Original Message -----
From: "Steve Werby" <steve-lists@xxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Friday, May 18, 2001 4:26 PM
Subject: Re: [cobalt-users] caddvsite error
> "Charles Williams (CEO)" <hosting.mailing.list.account@xxxxxxxxxxxxxxx>
> wrote:
> > I have been calling 'super' from the php script and when I call
'cadduser'
> > it works perfect but when I call 'caddvsite' I get an 'Unable to
setgid=0'
> > error. Any idea why this would happen? Both executables are owned by
> > root.root and permission of both are set to 4700. the exec() call uses
the
> > 'sh' shell on both script calls.
>
> I have missed the rest of the thread, but are you running PHP as a CGI?
If
> not and you're running it under the standard port 80 install of Apache
that
> runs as httpd or nobody your script will have permissions of that owner
and
> won't be able to execute or write to files it doesn't have permissions
for.
> Again, I missed the rest of the thread so that might not be the problem,
but
> I thought I'd mention in case it was.
>
Steve,
The same script is using cadduser perfectly. However, caddvsite only
functions halfway. The directories are created as well as all content, but
the UI is not updated as it should be. If I echo the command to the browser
that is sent to the shell, copy the line, and then paste it into an SSH
session while running the 'sh' shell it all works as it should. So I know
the command itself is formed correctly. But for some reason when parsed
through the script it doesn't work. I have even sent it through
'EscapeShellArg()' to preserve the command line as is and nothing seems to
help.
chuck