Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

Unix File permission setting in java

843833Dec 7 2004 — edited Dec 7 2004
I would like to know if you could change the permission from 650 to 653 ( r_x to others) of the unix file created in java. Is there anyway of achieving this without using the api defined on runtime object as well without using JNI calls. Pls advice. We cannot implement this at the OS level as file name is dynamically determined by java program. It is worth to note that the file is created by the owner and the file reader users belong to "others" group. Changing the file reader from "others" to the same group as that of the group to which the file owner belongs to, have got other technical implications. Therefore we want to achived the above said requirement using the java application level. One more thing to note is that we are using jdk1.3.1_02.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 4 2005
Added on Dec 7 2004
2 comments
162 views