Unix File permission setting in java
843833Dec 7 2004 — edited Dec 7 2004I 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.