logo       

Overiding one permission: msg#00000

java.sun.rmi

Subject: Overiding one permission

Hi,

I want to allow the user to have all permission except deleting a file.
How do I do this? Do I need to list out all the permission? I tried the
policy below, but I'm still able to delete file.txt.

grant {
permission java.security.AllPermission;
permission java.io.FilePermission "file.txt", "read";
}

Thanks much,
-Rach

===========================================================================
To unsubscribe, send email to listserv@xxxxxxxxxxxx and include in the body
of the message "signoff RMI-USERS". For general help, send email to
listserv@xxxxxxxxxxxx and include in the body of the message "help".

For a list of frequently asked RMI questions please refer to:
http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html

To view past RMI-USERS postings, please see:
http://archives.java.sun.com/archives/rmi-users.html



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise