I have configured TC 5.0.16 on Linux. In a JSP, using RunTime.exec(),
I'm trying to run a bash script that changes the mode of a file. I get
the following exception in the logs:

java.io.IOException: chmod : not found.

If the "chmod" line is commented in the script or when the script is
run from console, there are no errors. 

Is there any permission issue here? TC runs as root. 

I read some earlier posts that lead me to using security-manager
policy. I tried the following setting in catalina.policy and restarted
TC with security flag but didn't help.

grant codeBase "file:${catalina.home}/webapps/myapp/-" {
      permission java.security.AllPermission;
 };


Thanks
Keshav


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to