IP address and hostname logging for Samba clients

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Brian Simper
Date:  
To: PLUG-discuss
Subject: IP address and hostname logging for Samba clients
I am new to Samba but I set up a server and I am trying to get the
logging to my liking.
In /var/log/samba the entries are of the format:

    date.ipaddress.ipaddress


I would prefer the logging to be:

    date.ipaddress:hostname


Is there a way to do this in Samba? With dhcp in use on my network I
would have no
good clue about which machine is making transactions. Since Windows
machines connect
to this server I need to know if one of them is inadvertantly passing
viruses to me.

Inside /etc/samba/smb.conf I am currently using:

    log file = /var/log/samba/log.%m:%I:%U


I wanted to have a log file to track each client but I can't get the
hostname to appear, only the
ip address which is not as helpful with dhcp clients.

This is a ProLiant DL 380 running Red Hat Enterprise Linux 3.0 and
Samba 3. Any ideas?

Thanks,

--
-Brian

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss