aspose file tools*
The moose likes I/O and Streams and the fly likes Getting the user name who has accessed a file available in Shared Location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Reply locked New topic
Author

Getting the user name who has accessed a file available in Shared Location

Senthil Kumar
Ranch Hand

Joined: Oct 14, 2007
Posts: 33
Hi All,
Can anyone tell me how to get the user name who has accessed a file which is available in a shared location in java?

Thanks in advance

Regards
Senthil Kumar.S
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Presumably this would be possibale via native methods. So JNI would be the way I think. I can't think of a Java API to do this.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457
PLEASE don't post the same question twice:

This is an operating system question (can you tell that I've accessed a file?) not a java question.

faq.javaranch.com/java/UseOneThreadPerQuestion

faq.javaranch.com/java/CarefullyChooseOneForum
[ July 16, 2008: Message edited by: Bill Shirley ]

Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Senthil Kumar
Ranch Hand

Joined: Oct 14, 2007
Posts: 33
Luckily i know that is related to OS.
My Real Question.
Can that be achieved in java?

Senthil Kumar.S
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting the user name who has accessed a file available in Shared Location