Bug 89282 - Incorrect UTMP entry
Summary: Incorrect UTMP entry
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: samba
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jay Fenlason
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-04-22 03:51 UTC by Phil Anderson
Modified: 2014-08-31 23:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-01-22 11:10:18 UTC
Embargoed:


Attachments (Terms of Use)

Description Phil Anderson 2003-04-22 03:51:30 UTC
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.

How reproducible:
100%

Steps to Reproduce:
1. Add utmp=Yes to your smb.conf
2. Log login to the machine through samba
3. run 'last -i |head'
    
Actual results:
0.0.0.0 is in the IP field
IP is in the Hostname field

Expected results:
10.0.0.1 is in the IP field
host.example.com is in the hostname field

Additional info:
Probably an upstream bug, but is causing problems for my server usage accounting
scripts.

Comment 1 Andrew Bartlett 2003-05-23 10:31:27 UTC
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)


Note You need to log in before you can comment on or make changes to this bug.