Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

doing chown and chmod in java

Posted on 2006-06-23
3
Medium Priority
?
1,249 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
3 Comments
 
LVL 41

Assisted Solution

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

Accepted Solution

by:
andre6b earned 300 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is about my first experience with programming Arduino.
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Progress

885 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