[Samba] How to detect active users

John Drescher drescherjm at gmail.com
Tue Jul 26 10:56:51 MDT 2011

On Tue, Jul 26, 2011 at 12:54 PM, Malte Forkel <malte.forkel at berlin.de> wrote:
> Am 26.07.2011 18:31, schrieb Jeremy Allison:
>> On Tue, Jul 26, 2011 at 10:06:20AM +0200, Malte Forkel 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, Samba keeps state on all open files. That's what smbstatus shows.
> Well, is it a problem with my Samba configuration then? Or a different
> concept of "open"?
> I just used SciTE (a text editor) on a Windows 7 PC to open a text file
> on the server. When I ran smbstatus immediately after opening the file,
> it showed entries for the share(s) and the file itself. When I called
> smbstatus again about a minute later and while the editor window was
> still open, those entries were gone again.

This program could read the whole file to memory and close the file
allowing you to edit the closed file. Then when you save it could open
it again and save.


More information about the samba mailing list