Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: List open files for AFP users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: List open files for AFP users



At 1:33 PM -0700 8/29/05, david chan wrote:
Ok, in that case, then "lsof" does not show files opened by AFP connected
users.

Of course it does. How can a user have a file open through AFP and it not be open on the system?


I currently have a few documents open from a sharepoint and the file
is not listed as being open - absolutely nothing, not even showing that
appleshare server has it open... the files are not listed as open at all.

Many files are opened, read, and closed, so they're not currently open any more.


So if lsof isn't showing it, it's fair to say it's *NOT* open on the system.

Even if lsof would list the appleshare server process as having the file
open, it doesn't help much in narrowing down who has the open file
especially where there are tens or hundreds of connected users. But this
point is moot since lsof doesn't work for AFP users/files.

lsof *does* work for users/files, and *does* show the user on the system that has the file open.


The "user" with the open file, will be 'AppleFile' in lsof. That's b/c this *is* who has the file open currently on the server. That is this is the user on the serevr who has the file open.

If you want the user making a /request/ for a to the server, that's not who has the file open on the server. If this is what you want, look at your logs for requests, not open files.

--

-dhan

------------------------------------------------------------------------
Dan Shoop                                                   AIM: iWiring
Systems & Networks Architect                     http://www.iwiring.net/
email@hidden                                 http://www.ustsvs.com/

pgp key fingerprint: FAC0 9434 B5A5 24A8 D0AF  12B1 7840 3BE7 3736 DE0B

iWiring provides systems and networks support for Mac OS X, unix, and
Open Source application technologies at affordable rates.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: List open files for AFP users (From: david chan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.