[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] Cannot use chown() on RAQ3 ?



You would have to run your script under the administration server on port
81. That server runs as root, and any cgi script run by this server would
run as root too.

The document root for this server is:

/usr/admserv/

Even if you turn off cgiwrap in the regular server on port 80, you would not
be able to execute as root, since that server runs as user "httpd", with no
special privileges.

JLA



-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Jeff Lasman
Sent: Sunday, October 08, 2000 11:38 PM
To: cobalt-developers@xxxxxxxxxxxxxxx
Subject: Re: [cobalt-developers] Cannot use chown() on RAQ3 ?


dht@xxxxxxxx wrote:

> I'm trying to write a script to setup some extra programs for new clients
> (like guestbook, forum, file manager ...) in one click.
>
> However, I cannot change file permission for client programs!  If I run
> setup script as root, CgiWrap refuse to excute.  If I run setup srcript as
> admin, I cannot use chown() !
>
> I tried with both Perl and PHP cgi .  Is there a solution for this problem
?

One I can think of is to run your perl/php program without cgiwrap.
Rather than removing cgiwrap altogether, I'd just  set up a new file
type and file handler.

You are aware of all the security issues, right?

Jeff
--
Jeff Lasman <jblists@xxxxxxxxxxxxx>
nobaloney.net
P. O. Box 52672
Riverside, CA  92517
voice: (909) 787-8589  *  fax: (909) 782-0205

_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers