Cmd line util to find owner of a file?

Is there a command-line (i.e. non-gui) way to find the owner of a file? (Non-POSIX, please.)
LVL 1
dmagAsked:
Who is Participating?
 
cerConnect With a Mentor Commented:
List open files over the network with:

     http://www.jsiinc.com/ofl.zip

PULIST from the resourckit list owner of running processes.

List ownership of a file:

ftp://ftp.winsite.com/pub/pc/winnt/miscutil/ls_nt17.zip
ftp://ftp.winsite.com/pub/pc/winnt/misc/ntfiles.zip

Why not ls from Posix ?

0
 
dmagAuthor Commented:
Edited text of question
0
 
dmagAuthor Commented:
I have the POSIX subsystem disabled. I've never found a utility that didn't work better when compiled to win32.

I tried FILES.EXE (in ntfiles.zip) and it said: Error calling API CreateFile = 2

LS.EXE (in ls_nt17.zip) did indeed work. Thanks.

0
 
cerCommented:
There is also a LS.EXE in the POSIX subdirectory from the resourcekit. I thought LS _is_ from posix.
0
 
dmagAuthor Commented:
Yes, there is a port of the UNIX ls that runs under the NT POSIX subsystem. I have disabled the POSIX subsystem, because it's silly.I was looking (and found) a version that was compiled for the win32 subsystem.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.