Re: Samba file access checking?



Martijn Lievaart wrote:
On Sun, 29 Apr 2007 18:45:34 +0000, Jim Ford wrote:

I want to get the IP address of any machine accessing the files on my
samba share. As I mentioned, I can do it by examining the output from
smbstatus, but feel that there must be a better way.

Parse the samba logs. Maybe swatch can help. Otherwise a very simple perlscript will do the trick.


That's what I've been doing so far. I just thought there would be a more 'direct' way of doing it - say through the proc fs (but there doesn't seem to be anything there an samba).

Thanks for the reply.

Jim Ford
.



Relevant Pages

  • Samba file access checking?
    ... I'm checking Samba share files accessed on my Linux machine, using the output of smbstatus to get the IP addresses of the machines. ... Jim Ford ...
    (comp.lang.perl.misc)
  • Re: Mounting a remote Windows file system?
    ... Jim Ford wrote: ... > mounted his HD, I didn't mount it rw, so I couldn't quarantine the files ... With Samba I'll have to ... tauno voipio iki fi ...
    (comp.os.linux.networking)
  • Re: Samba file access checking?
    ... smbstatus, but feel that there must be a better way. ... Parse the samba logs. ... perlscript will do the trick. ...
    (comp.lang.perl.misc)