4

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).

patryk.beza
  • 1,179
  • 1
    If these files are only accessed by Samba then possibly you could watch them? See http://unix.stackexchange.com/questions/12247/linux-file-access-monitoring for details on that. – Ned64 Mar 30 '17 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 '17 at 09: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 08 '18 at 14:49

0 Answers0