Red Hat Bugzilla – Bug 89282
Incorrect UTMP entry
Last modified: 2014-08-31 19:24:56 EDT
Description of problem:
Samba adds incorrect utmp entry. Samba puts the IP address of the host in the
hostname field, and puts 0.0.0.0 in the IP address field.
Steps to Reproduce:
1. Add utmp=Yes to your smb.conf
2. Log login to the machine through samba
3. run 'last -i |head'
0.0.0.0 is in the IP field
IP is in the Hostname field
10.0.0.1 is in the IP field
host.example.com is in the hostname field
Probably an upstream bug, but is causing problems for my server usage accounting
Fixed in Samba 3.0 alpha. The IP is now recorded in both by default. If
'hostname lookups' is set in the smb.conf, then we will show the reverse DNS.
(Off by default becouse most samba installations don't have correct DNS)