[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-developers] CGIWrap Error: Execution of this script not permitted
- Subject: RE: [cobalt-developers] CGIWrap Error: Execution of this script not permitted
- From: "KAMRY" <kamry1888@xxxxxxxxx>
- Date: Tue Apr 10 09:51:30 2001
- List-id: Discussion Forum for developers on Cobalt Networks products <cobalt-developers.list.cobalt.com>
Thanks a lot, it works great now.
Hence, to make the site works from both www.domain.com/~sub and
http://sub.domain.com then all what you need to do is to make that "sub"
user a "Site Administrator" from the GUI and make him the owner of all files
under his directory "sub" instead of giving those files the power of
admin... But I wasn't getting any where before your excellent comments...
Kal
-----Original Message-----
From: cobalt-developers-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-developers-admin@xxxxxxxxxxxxxxx]On Behalf Of Gilbert,
Mark
Sent: Tuesday, April 10, 2001 7:26 AM
To: 'cobalt-developers@xxxxxxxxxxxxxxx'
Subject: RE: [cobalt-developers] CGIWrap Error: Execution of this script
not permitted
Kal:
What I've found is that when you run the scripts under a user's web
directory, like www.domain.com/~sub, the owner of the scripts needs to be
that user. If you're running the scripts under a virtual web site, the
owner needs to be "admin". You can see who the owner of the scripts
currently are by switching into the cgi-bin directory via telnet (or
where-ever they are currently stored) and run "ls -al". The left-most
column of names is the user that currently "owns" the scripts.
To change owners, run "su root" to switch to the root owner (same password
as admin), and then run "chown new_user_name *.cgi" where "new_user_name" is
either "sub" (in the example above) or "admin". This particular command
will change all files that end with ".cgi" - if your scripts are named
something differently, change the "*.cgi" to whatever you need. If you use
a simple asterisk "*", that will change the owners of everything in the
currently directory.
Now, what I think will happen is if you use "admin" as the owner, then
running the scripts under www.domain.com/~sub won't work; and if you use
"sub" as the owner then http://sub.domain.com won't work. I've never tried
to set a script up to run under both types of URL. My first guess is there
may be an owner that you can use for the scripts that would allow them to
run under both sites (something other than sub and admin).
Good luck!
Mark E. Gilbert
Granite Solutions
> -----Original Message-----
> From: KAMRY [mailto:kamry1888@xxxxxxxxx]
> Sent: Tuesday, April 10, 2001 3:31 AM
> To: cobalt-developers@xxxxxxxxxxxxxxx
> Subject: [cobalt-developers] CGIWrap Error: Execution of this
> script not
> permitted
>
>
>
> I'm using a subdomain such as http://sub.domain.com The "sub" is a
> pre-created/pre-added userName/directory. However, if I go to
> www.domain.com/~sub I am able to execute cgi scripts, however
> if I go to
> http://sub.domain.com I get the following error:
>
> CGIWrap Error: Execution of this script not permitted
> Execution of (sub) is not permitted for the following reason:
>
>
> User not Privileged.
>
> I did add cgi handlers to the httpd conf of that subdomain,
> but it doesn't
> seem to like my solution, so I appreciate it if some one can
> help on this
> issue...
>
> Thanks,
>
> Kal
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> _______________________________________________
> cobalt-developers mailing list
> cobalt-developers@xxxxxxxxxxxxxxx
> http://list.cobalt.com/mailman/listinfo/cobalt-developers
>
_______________________________________________
cobalt-developers mailing list
cobalt-developers@xxxxxxxxxxxxxxx
http://list.cobalt.com/mailman/listinfo/cobalt-developers
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com