Fwd: Re[2]: [Samba] Log user log-offs

Collen Blijenberg <MLHJ> systeembeheer at hermanjordan.nl
Thu Mar 4 09:01:23 GMT 2004

Hmm.. basic's are good here.. post and pre exec..

the only prob is that some shares are disconnected right after a logon..
eg. netlogon and others are only used at logon time, and get
disconnected right away.
also, samba (or windows) seems to disconnect freqently..

      [2004/02/19 14:03:00, 0] lib/util_sock.c:read_socket_data(342)
       read_socket_data: recv failure for 4. Error = Connection reset by peer
      [2004/02/19 14:06:18, 0] lib/util_sock.c:get_peer_addr(952)
       getpeername failed. Error was Transport endpoint is not connected
      [2004/02/19 14:06:18, 0] lib/util_sock.c:send_smb(605)
       Error writing 4 bytes to client. -1. (Connection reset by peer)

so when i use post and pre on my server, the log's get messedup..
i got like 3 logon's within 10 sec's and logoff's on the straingests
times.. (no frequecy or logic here..)
Collen Blijenberg (MLHJ)

Thursday, February 26, 2004, 10:50:37 PM, you wrote:

LN> how about 

LN> root postexec =

LN> ??

LN> BLOCKQUOTE { BORDER-LEFT:#1F4687 1px solid; padding-left:20px;
LN> margin-left: 0px; }-----Original Message-----
LN> From: "Brandon Turner" <brandon at msc.tamu.edu>
LN> Sent: Thursday, 26. Feb 2004 12:26 -0800
LN> To: <samba at lists.samba.org>
LN> Subject: [Samba] Log user log-offs

LN> Does anyone know of a way to log when a user logs off using Samba as a

LN> PDC.  I have Samba 3.0.2a and can log log-ons using root preexec on a

LN> share all users mount, however I do not know of a way to log log-offs.

LN> We need this data for record keeping purposes.  We don't use roaming

LN> profiles, so using root postexec is not an option as shares disconnect

LN> when not in use.


LN> Thanks for any help,

LN> Brandon Turner

LN> MSC Computer Operations

LN> -- 

LN> To unsubscribe from this list go to the following URL and read the

LN> instructions:  http://lists.samba.org/mailman/listinfo/samba

===8<===========End of original message text===========

Best regards,
 Collen                            mailto:systeembeheer at hermanjordan.nl

More information about the samba mailing list