[Samba] How to detect active users
cweiss at gmail.com
Tue Jul 26 11:08:29 MDT 2011
On Tue, Jul 26, 2011 at 12:04 PM, Malte Forkel <malte.forkel at berlin.de> wrote:
> Am 26.07.2011 18:42, schrieb Chris Weiss:
>> On Tue, Jul 26, 2011 at 3:06 AM, Malte Forkel <malte.forkel at berlin.de> wrote:
>>> Currently, I'm not even sure Samba preserves the kind of state
>>> information required to detect the usage scenario I'm interested in. Is
>>> there any concept of an "open file" in Windows/Samba, after all? May be
>>> it depends on the application used to open the file?
>> yes, it depends on the application. If the app closes the file and
>> leaves the share, samba honors that. if the app keeps the file handle
>> open, samba does too.
> So an application (like SciTE) might open a file, read and display its
> contents, and close the file while continuing to display it. And in
> contrast, a different application might not close the file while it is
> displaying its contents?
exactly. Scite and notepad are known to close the file, Word and
Excel are known to keep the file open because they only read parts of
the file into ram. not sure if that applies to .txt and .csv though,
but doc and xls for sure
More information about the samba