Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java 7 API Files.getowner returns S-1-5-21-1256266458-1619763451-1018739985-1218

 
priya pm
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. i'm accessing the files residing on my remote hp-ux system on my windows system through the samba map-drive. When i use the api Files.getowner() for a file under the C:, it returns the owner of the file. but if i use the same API for a file under the map-drive, it returns a sequence of digits like S-1-5-21-1256266458-1619763451-1018739985-1218.
can anyone tell me how to obtain the owner of the file in the samba map drive?
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, this is an internal user ID which Windows displays when it cannot - for some reason - translate it to the real user name.

I don't know how Samba provides file and folder owners to Windows, but I'd say that Windows are unable to find that user. That user exists on unix, it probably doesn't have any relationship to the Windows machine accessing the share. You'd probably have to set both systems in a way which would allow them to share user definitions (eg. put them both to a Windows domain) to be able to display the user name on Windows. (Just guessing.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic