[Samba] How to detect active users

Pascal Valois pascal.valois at devinci.fr
Mon Jul 25 14:50:27 MDT 2011


Le 25/07/11 22:44, Jeremy Allison a écrit :
> On Mon, Jul 25, 2011 at 10:21:35PM +0200, Malte Forkel wrote:
>> Hi,
>>
>> I'm running Samba 3.2.5 on a server which I'd like to shut down when it
>> is not used by any client.
>>
>> Is there a way to detect whether any user has opened a file on the server?
> smbstatus will tell you.
slight correction,

smbstatus tells you what file are used and by who, currently.
not who HAS opened a file.

so depending on what you mean by "has opened" (opened before and still 
use it, or opened before and may have close it), smbstatus may be the 
answer or not.

-- 
Pascal Valois
Service Informatique
Pôle Universitaire Léonard de Vinci



More information about the samba mailing list