Re: [Samba] Samba Script?

2004-09-19 Thread rruegner
hi, there are many ways to implement such script, ie. i have done a dos script at netlogon which checks the ip and does not install printers for vpn users. But there should be a way with root exec and perl too directly in share. Checking samba log by cron should be work too. ( cause normally you

Re: [Samba] Samba Script?

2004-09-19 Thread Matthias Spork
Shahid Hussain schrieb: Good Evening :) I wanted to know is it possible to write a script to alert me by email if anyone accessed to Samba. For example: 192.168.0.2 and 192.168.0.3 allowed to access to samba network (I wont get a alert). Any IP apart from 192.168.0.2 / 192.168.0.3 then it

[Samba] Samba Script?

2004-09-18 Thread Shahid Hussain
Good Evening :) I wanted to know is it possible to write a script to alert me by email if anyone accessed to Samba. For example: 192.168.0.2 and 192.168.0.3 allowed to access to samba network (I wont get a alert). Any IP apart from 192.168.0.2 / 192.168.0.3 then it will alert me.

Re: [Samba] Samba Script?

2004-09-18 Thread Paul Gienger
Good Evening :) I wanted to know is it possible to write a script to alert me by email if anyone accessed to Samba. You could always use the pre-exec directive on a share and then evaluate the ip address of the client, passed with the %I variable like so [myshare] root preexec =