Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

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

 
Senthil Kumar
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 ]
 
Senthil Kumar
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Report post to moderator
Luckily i know that is related to OS.
My Real Question.
Can that be achieved in java?

Senthil Kumar.S
 
    Bookmark Topic Watch Topic
  • New Topic