• Post Reply Bookmark Topic Watch Topic
  • New Topic

file.canread()

 
kris thyag
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a tricky situation here and i need help. I have a java server running under windows xp as a service , the properties of the service is it will log on using local system account.

Now when My server tries to access a file in a shared directory using the canread() method it is able to access it, however when my java server calls c++ program using JNI and the c++ program is not able to read the same file because it uses the authentication of the service (which is local system account).

Now my question is why is java not using the authentication of local system account and how can i make it to use the authentication of loacl system account.

Thanks for your help
 
Joseph Maddison
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like a problem with your OS rather than with Java. Isn't it the OS that enforces file permissions?

Hope this helps,
Joseph
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!