RMI Permissions Help Needed

From: tom bowles (tom_bowles_ox_at_hotmail.com)
Date: 10/29/03


Date: 29 Oct 2003 01:31:41 -0800

Hello, I'm really stuck on this one:

Do RMI Permissions inherit properties from the system or somewhere
else ? because I can think of no other reason for this problem:

Here's the problem:

I have set up a simple RMI service running on XP, I set up a new
security Manager (see policy file below), yet when I call

 Naming.rebind("//127.0.0.1:1093/Deck", myDeck);
 // note I was getting other problems running on the default port.

I get the following error:

java.security.AccessControlException: access denied
(java.io.FilePermission \\c\
develop\rmi\rmi\classes read)

The permissions file is being found, because if I remove all
permissions it gets a connection problem with the socket.

Here's the permissions file

grant
{
  // Allow everything
  permission java.security.AllPermission "", "";
};

It can also find the directory C:\develop\rmi\rmi\classes because when
I remove the stub classes from there it fails before it reaches the
point it is failing above.

I'm stuck on this and if anyone could help I'd be very grateful.

The system is Windows XP professional, JBOSS is also running on the
system.

thanks,

Tom



Relevant Pages

  • Re: [opensuse] 10.2: YOU resets /root/ permissions?
    ... Every time YOU runs it resets the permissions so that only root can ... overwrite this entry with a custom entry in the /etc/permissions.local ... * it's possible to make the modification said in the permissions file ... May I also say that the OP didn't post the very reason he have to try to do so. ...
    (SuSE)
  • Re: Finding out if user has privileges to a diectory.
    ... still have to deal with the exception. ... Is this your only reason for wanting to perform the pre-write ... > If the user has no permissions whatsoever on the directory, ...
    (microsoft.public.dotnet.security)
  • Re: minesweeper
    ... For some reason, it won't save my best times anymore. ... expert level, I just got 164 today ) ... Its permissions ...
    (microsoft.public.windowsxp.general)
  • Re: Finding out if user has privileges to a diectory.
    ... Is this your only reason for wanting to perform the pre-write ... If the user has no permissions whatsoever on the directory, ... Given that this is a network directory, ... so you'll need to handle the same exception ...
    (microsoft.public.dotnet.security)
  • Re: Can only print as root not as local user
    ... > I have a text file with 777 permissions. ... you didn't mention are you using cups or lprng. ... that the local user ... > can print to but not this one for some reason. ...
    (RedHat)