In java, i'm dynamically creating a set of files and i'd like to change the file permissions on these files on a linux/unix file system. I'd like to be able to execute the java equivalent of chmod. Is that possible Java 5, if so, how?
I know in Java 6 the File object has setReadable()/setWritable() methods. I also know i could make a system call to do this, but i'd like to avoid that if possible.