Hi, This isn't strictly a Samba question, but administrators may have come across it. We'd like to be able to log user events (logging in and out) which dates and times to a central file. Trolling through the multitude of log files we generate (one per machine with over 200 machines gets icky), so we figured on a syslog style method using LOCAL7 or similar. This is proving a little difficult to find. An alternative idea was the send a message on login and logout (maybe with the logon.bat script) to the PDC, but "net send" fails as Samba doesn't accept the message. I'm assuming that's an RPC "issue". Does any have any ideas on how to track these user events to the PDC (or any unix remote server)? Regards, Antony. ----- Unix Systems Administrator School of Computing & IT University of Western Sydney Phone: (02) 4736 0771 Fax: (02) 4736 0770 Programmer (n): One who makes the lies the salesman told come true. She said she had nothing to wear. I smiled. -------------- next part -------------- HTML attachment scrubbed and removed
1) compile with --with-utmp, then track that. 2) use preexec & postexec, and require users to log on to a specific share. This may not work right, though. Good luck! --Yan -- Daddy, did all the hair that fell off your head stick to your arms? Akari, age 4 ... oberon.cardhome.lan: 5:39am up 4 days, 17:31, 6 users, load average: 0.46, 0.22, 0.19
Yan Seiner wrote:> > 1) compile with --with-utmp, then track that. > 2) use preexec & postexec, and require users to log on to a specific > share. This may not work right, though. > > Good luck!You can also compile --with-pam, and enable a pam sessions module to do the trick (obey pam restrictions = yes needs to be set in your smb.conf as well). Andrew Bartlett -- Andrew Bartlett abartlet@pcug.org.au Manager, Authentication Subsystems, Samba Team abartlet@samba.org Student Network Administrator, Hawker College abartlet@hawkerc.net http://samba.org http://build.samba.org http://hawkerc.net