Is there any way I can get notification (preferably Gnome notification) when someone (privileged) is accessing my Samba/CIFS share? If there is no such a tool, I need to implement one.

It's important for me to have such a feature, since I need to be notified when potentially big files are downloaded from my computer. BTW: I was quite surprised that Samba even does not have default access log with list of IPs and accessed files.

PS. I know that that link I posted is outdated but still – it seems that Samba doesn't log who and when accessed which file (by default).

  • 1
    If these files are only accessed by Samba then possibly you could watch them? See unix.stackexchange.com/questions/12247/… for details on that.
    – Ned64
    Mar 30, 2017 at 18:22
  • In lack of anything better, you could install Wireshark and set up a filter for viewing all access to your computer over Samba. This will list the IP + MAC addresses of people accessing the files, possibly the filenames too.
    – Alexander
    Oct 31, 2017 at 9:30
  • Samba logs file access with log level about 2, see man smb.conf. With a preexec script, you can trigger the access to the share.
    – ingopingo
    Feb 8, 2018 at 14:49


You must log in to answer this question.

Browse other questions tagged .