Tomcat security permission to access for jforum
by Vinoth[ Edit ] 2009-07-29 12:43:47
Hi,
If you are using jforum. We need to set the permission in the catalina.policy file. The security permissions are as follow
grant codeBase "file:${catalina.home}/webapps/jforum/-" {
permission java.util.PropertyPermission "freemarker.development", "read";
permission java.util.PropertyPermission "file.encoding", "read";
permission java.util.PropertyPermission "java.io.tmpdir", "read";
permission java.util.PropertyPermission "org.apache.lucene.lockDir", "read";
permission java.util.PropertyPermission "freemarker.debug.password", "read";
permission java.util.PropertyPermission "org.apache.lucene.store.FSDirectoryLockFactoryClass", "read";
permission java.io.FilePermission "${catalina.home}/webapps/jforum/WEB-INF/jforumLuceneIndex", "write";
permission java.io.FilePermission "${catalina.home}/webapps/jforum/WEB-INF/jforumLuceneIndex/-", "read,write,delete";
permission java.io.FilePermission "${catalina.home}/webapps/jforum/WEB-INF/config/-", "write";
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.jasper.compiler";
permission java.lang.RuntimePermission "accessClassInPackage.org.apache.tomcat.dbcp.*";
permission java.net.SocketPermission "localhost:3306", "connect,resolve";
permission java.net.SocketPermission "localhost:25","connect,resolve";
};