Can you change file permissions in Java (i.e. the equivalent of chmod)?
Location: http://www.jguru.com/faq/view.jsp?EID=275215 Created: Dec 11, 2000 Modified: 2001-08-18 18:35:25.777 Author: Erin Mulder (http://www.jguru.com/guru/viewbio.jsp?EID=275205) Question originally posed by george hart (http://www.jguru.com/guru/viewbio.jsp?EID=251010 You can restrict file permissions further using a SecurityManager and Policy, but cannot actually change the file permissions in the native filesystem without a system call (e.g. Runtime.getRuntime().exec(“chmod 644 ” + filepath)).