Solved

Cmd line util to find owner of a file?

Posted on 1997-07-06
5
630 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

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Question has a verified solution.

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

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now