Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can you change file permissions in Java (i.e. the equivalent of chmod)?

0
Posted

Can you change file permissions in Java (i.e. the equivalent of chmod)?

0

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)).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123