Umm, I don't know if there is a way to do it with the java.io or java.nio package. The command on Linux and Unix to set permissions is
chmod. It takes either a symbolic or numeric argument. For example:
Gives the user, group and world read, write and execute permission. Here is the numeric version:
Here is a link to the man page:
CHMOD(1) Michael Morris
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher