[Samba] Log user log-offs

James McDonald james at jamesmcdonald.id.au
Thu Feb 26 22:56:02 GMT 2004


Loc Nguyen wrote:

>Does anyone know of a way to log when a user logs off using Samba as a
>
>PDC.  I have Samba 3.0.2a and can log log-ons using root preexec on a
>
>share all users mount, however I do not know of a way to log log-offs.
>
>We need this data for record keeping purposes.  We don't use roaming
>
>profiles, so using root postexec is not an option as shares disconnect
>
>when not in use.
>

If you are using windows 2000/XP clients why not use the logoff script 
policy option so when the user physicall logs off the workstation it 
writes to
A text file on a world writeable share
or
The eventlog on a central computer
or
A database on the network





More information about the samba mailing list