Solved

Cmd line util to find owner of a file?

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

828 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