Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java application & unix file permission

843798Jun 17 2005 — edited Jun 24 2005
Hi,

I have a question about Java application & setuid flag on unix system.

We have a java application that need to be called by many users on the unix system and write a file in a directory owned by the application admin. For security reason, that directory can not open write permission to the users that run the java application. I know if this is a non-java applicaiton, then let application admin own it and set the setuid flag should do the work. But I don't know how to set the uid for a Java application, should I set the JVM (java executable)'s setuid flag to on? will this work?

If this works, Does that mean the application admin should install his own JRE so that this setuid flag will not affect other Java users?

Thanks for any feedback.

Bill.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2005
Added on Jun 17 2005
7 comments
497 views