tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Francois Arcand <jfarc...@apache.org>
Subject Re: Socket permission in a CGI Script
Date Tue, 28 Oct 2003 01:55:40 GMT
Try something like

chmod a+x your_cgi
or chmod 777 .....

If that doesn't work, then I have no idea :-(

-- Jeanfrancois

Patrick Willart wrote:

>Hmmm.... I don't know. Even without the security manager running the CGI
>program isn't allowed to open a socket connection. To my understanding the
>security manager just adds protection and doesn't allow you to do more
>things then normally would be allowed.
>
>patrick
>
>-----Original Message-----
>From: Jean-Francois Arcand [mailto:jfarcand@apache.org]
>Sent: Saturday, October 25, 2003 12:05 PM
>To: Tomcat Users List
>Subject: Re: Socket permission in a CGI Script
>
>
>I'm not a servlets-cgi expert (never used), but I think, if Tomcat runs
>with a Security Manager, you can fix the problem by adding the following
>in server.policy:
>
>// Give all permission to servlets-cgi.jar
>grant codeBase "file:${catalina.home}/server/lib/servlets-cgi.jar" {
>        permission java.security.AllPermission;
>};
>
>If it works then try to only give the socket permission. If you are not
>running with a Security Manager, then it's a permission/group OS setting.
>
>--Jeanfrancois
>
>Joao Machado wrote:
>
>  
>
>>Hi all,
>>
>> I'm trying to execute a CGI script and this Script tries to connect
>>with a database opening a socket to it. This raises a problem that this
>>script can't do this (permission?). I found in the mail archive someone
>>with the same problem but I didn't found an answer. Anyone has solved
>>this issue ?
>>
>>Thanks in advance,
>>
>>Joao Machado
>>
>>---
>>Outgoing mail is certified Virus Free.
>>Checked by AVG anti-virus system (http://www.grisoft.com).
>>Version: 6.0.512 / Virus Database: 309 - Release Date: 19/08/2003
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message