[Samba] login script

Matthias Spork hallo at matthiasspork.de
Thu Jun 3 21:10:33 GMT 2004


Gabriel Moll Ibacache schrieb:

>Hi everybody! Here is my first question :)
>
>I have a solaris machine running samba, and a lot of computers with
>windows 2000. I need to generate a log file with the time when a user
>logon into the machine and the time when the user logout.
>
>I tryed the following ...
>
>In the smb.conf I wrote in the [netlogon] section
>
>[netlogon]
>     root preexec = /usr/local/samba/lib/mylogin.pl %T %u %m
>     root postexec = /usr/local/samba/lib/mylogout.pl %T %u %m
>  
>
Why don't you take the profiles-share for your Script? Every time this 
share will be connectet, a user logs in or out.

matze



More information about the samba mailing list