Solved

doing chown and chmod in java

Posted on 2006-06-23
3
1,226 Views
Last Modified: 2013-11-13
Is there a standard java api to do chown and chmod?
I really don't want to have to have to Runtime.getRuntime().exec("chown blah /blah");
0
Comment
Question by:aturetsky
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 41

Assisted Solution

by:HonorGod
HonorGod earned 50 total points
ID: 16973732
no, there isn't.
0
 
LVL 1

Accepted Solution

by:
andre6b earned 75 total points
ID: 16978206
Not that I know of.  I think the reason is that Unix-style permissions are not portable.  FAT32 only have a couple of attributes, and NTFS has ACLs.  But you can use JNI if you really need the functionality.
0
 
LVL 1

Author Comment

by:aturetsky
ID: 16980149
sorry, I posted it in a wrong forum, I meant to post it in Java Programming.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
A short article about a problem I had getting the GPS LocationListener working.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question