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
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba