I would opt for absolute path URI such as. file:opt/usr/photo/-
instead of the more problematic UNC's
it appears you want AllPermission which is granted by Security class with
same name ..AllPermission
so in $CATALINA_HOME/conf/catalina.policy you can consider a grant on
absolute path of opt/usr/photo such as
grant codeBase "file:opt/usr/photo/-" {
        permission java.security.AllPermission;
};

does anyone know if UNC is supported in tomcat 4.1.36 catalina.policy with
Netware 6.5 File System???
Martin
----- Original Message -----
From: "Aziz Yacoub" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, November 26, 2007 4:58 AM
Subject: Security Manager


> I'm using security manager with Tomcat 4.1.36 on NetWare 6.5 sp7.
>
> The policy file includes:
>
> grant {
>   permission java.io.FilePermission "\\SERVER1\VOL1\Photos", "read,
> write, delete";
> };
>
> which as I understand gives full access for \\SERVER1\VOL1\Photos to all
> web apps.
>
> But I still get:
> org.apache.jasper.JasperException: access denied (java.io.FilePermission
> \\SERVER1\VOL1\Photos read)
>
> Is there anything else I need to do? I've also tried granting access
> using VOL1:/Photos but with the same result.
>
> Thanks
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to