By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,469 Members | 1,885 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,469 IT Pros & Developers. It's quick & easy.

howto get permission information of UNIX directory

P: n/a

Hello @ all!

I'm fairly new to Java so this might be a stupid question but ... however
Is there any possibility to gather information about the owner of a Unix
and it's permissions ?
For instance, there is a directory

drwxr----- 13 java nogroup 297 Dec 20 17:07 test
and I want to make sure that only the user "java" may access it. Otherwhise
the data stored within this directory may be corrupted.
I've had a close look at all Java related documentation I could find but
Java can't do this job or I simply don't see how to solve this problem.

perhaps some of you could give me a hand?
Thanks in advance,
merry x-mas!
Thorsten Garrels
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
hello thorsten
i think there is canRead() , canWrite() for class which
checks if your app can read /write ..... not sure abt execution
if nothing works you can use native code to do the required stuff

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.