Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Samba Audit and events
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1552
Location: Adelaide/Australia

PostPosted: Thu Sep 13, 2012 5:32 am    Post subject: [Solved] Samba Audit and events Reply with quote

I have a requirement that should a certain file be created on my samba share, I would like a program or script to be executed.

I could have a program monitor the audit log, but I am wondering if samba has any 'plugin' capability where I can be notified when an event happens and maybe perform some task when that event occurs.

I don't expect this to be some sort of 'filter', I just want to know if something has happened and it would be nice if it was real time.

Maybe something with dbus?

Any suggestions would be welcomed.

Solved:

samba is using syslog to record the audit log.
syslog-ng (what I use) allows for 'programs' to receive all log input
I can simply make a program which checks for required events from stdin and action as necessary.
_________________
...Lyall
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum