Solved

doing chown and chmod in java

Posted on 2006-06-23
3
1,198 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 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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 …
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now