we're running samba and nfs servers on an Ubuntu LTS 04.10 machine. Is there a way detect on the server, whether any client is connected to one of the shares? The clients are Windows 7,Linux or OS X systems.
I would like to know this in order to restart the server without disturbing my users.
Thanks,
Kathrin
Best Answer
You can use smbstatus for the Samba shares . It will print a list of users connected with machine, share, etc...
With nfs, you can use showmount for a list of machines and mounted shares in the machine:
Hope it helps.
Cheers,
Bruno