[Samba] Audit Trail/Logging For Network Logons and Logoffs

Lars Rasmussen lars.rasmussen at gmail.com
Wed Mar 2 21:10:49 GMT 2005

On Wed, 2 Mar 2005 13:12:35 -0700, Lars Rasmussen
<lars.rasmussen at gmail.com> wrote:
> @echo off
> SET logoninfo=%USERNAME% logged on %DATE% %TIME:~0,8%

> echo %logoninfo% >> \\server\hiddenshare\%USERNAME%.log

This line should read:
echo %logoninfo% >> "\\secure\logontimes\%USERNAME%.log"

That way you allow for spaces with XP users.

More information about the samba mailing list