Solved

Cmd line util to find owner of a file?

Posted on 1997-07-06
5
631 Views
Last Modified: 2013-12-28
Is there a command-line (i.e. non-gui) way to find the owner of a file? (Non-POSIX, please.)
0
Comment
Question by:dmag
  • 3
  • 2
5 Comments
 
LVL 1

Author Comment

by:dmag
ID: 1779564
Edited text of question
0
 
LVL 5

Accepted Solution

by:
cer earned 50 total points
ID: 1779565
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
 
LVL 1

Author Comment

by:dmag
ID: 1779566
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
 
LVL 5

Expert Comment

by:cer
ID: 1779567
There is also a LS.EXE in the POSIX subdirectory from the resourcekit. I thought LS _is_ from posix.
0
 
LVL 1

Author Comment

by:dmag
ID: 1779568
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

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question