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:[EMAIL PROTECTED]] > Sent: Tuesday, April 10, 2001 3:31 AM > To: [EMAIL PROTECTED] > 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 > [EMAIL PROTECTED] > http://list.cobalt.com/mailman/listinfo/cobalt-developers > _______________________________________________ cobalt-developers mailing list [EMAIL PROTECTED] http://list.cobalt.com/mailman/listinfo/cobalt-developers
