See active Windows share access & open files

Method 1
– From the command line type “net session” which will show active file share access and the computer and user that is actively using/accessing a Windows share.

Method 2 (recommended)
– Right click the Start button.
– Go to “Computer Management”
– Find and expand “Shared Folders”.
– To see specific files being accessed by specific users, find and select “Open Files” to see what files are being access by a specific user.
– To see specific active sessions by users, find and select “Sessions” to see which user is actively connected to a Windows share, their computer name/IP and if they have open files and the number of open files that they have.

 

 

NextCloud or OwnCloud – smbclient not installed for CIFS/SMB external mounts

When using NextCloud or OwnCloud, if you attempt to connect the instance to a Windows share via the External Storage “app” and see the following message –  ”  “smbclient” is not installed. Mounting of “SMB / CIFS”, “SMB / CIFS using OC login” is not possible.  “, it means that the smbclient has not been installed to the server.  To install the smbclient do the following and then reboot the server:

  •  Log in to the Linux server.
  •  Type “sudo apt update”
  •  Type “sudo apt install smbclient”
  •  Type “sudo apt install php-smbclient”.
  •  Reboot the server.
  •  Go into NextCloud or OwnCloud and then into the External Storage app and the message should now be gone.  At this point you should be able to connect to a Windows share (SMB/CIFS) via the External Storage app.