Samba utmp patch

Giulio Orsero giulioo at pobox.com
Thu Apr 6 08:07:00 GMT 2000


On Thu, 6 Apr 2000 13:15:08 +1000, hai scritto:

>The patch is for 2.0.7pre3 and ONLY for 2.0.7pre3 .  It will not install
>for any other version.  (This is new functionality, the code has rapidly

Linux RedHat6.1 intel.
I applied the patch,  but now utmp logging has stopped.
The patch was applied to a clean 2.0.7pre3 + patch in trans2.c for
smbclient listing and patch in nmbd_subnetdb.c for interfaces handling.

>Note that you will have to run both "autoconf" and "autoheader". 
I untarred, applied patches, did configure, ...., make..., is this ok?


# grep TMP config.h
#define WITH_UTMP 1
#define HAVE_UTMP_H 1
#define HAVE_UTMPX_H 1
#

1) with just
utmp = yes

[2000/04/06 07:08:51, 2] smbd/connection.c:utmp_claim(560)
  utmp_claim: conn NULL
[2000/04/06 07:08:51, 2] smbd/connection.c:utmp_claim(586)
  utmp_claim: conn: user:cdi cnum:2 i:1 (nopen:2)
[2000/04/06 07:08:51, 2] smbd/connection.c:utmp_claim(588)
  utmp_claim: crec: pid:3275, cnum:2 name:cdi addr:10.0.0.172 mach:go
host:go
[2000/04/06 07:08:51, 2] smbd/connection.c:uw_pathname(470)
  uw_pathname: unable to determine pathname
[2000/04/06 07:08:51, 2] smbd/connection.c:utmp_update(491)
  utmp_update: fname:
[2000/04/06 07:08:51, 2] smbd/connection.c:uw_pathname(470)
  uw_pathname: unable to determine pathname
[2000/04/06 07:08:51, 2] smbd/connection.c:utmp_update(504)
  utmp_update: fname:

2) with
utmp = yes
utmp dir = /var/run
wtmp dir = /var/log

[2000/04/06 07:10:07, 2] smbd/connection.c:utmp_claim(560)
  utmp_claim: conn NULL
[2000/04/06 07:10:07, 2] smbd/connection.c:utmp_claim(586)
  utmp_claim: conn: user:cdi cnum:2 i:1 (nopen:2)
[2000/04/06 07:10:07, 2] smbd/connection.c:utmp_claim(588)
  utmp_claim: crec: pid:3337, cnum:2 name:windows addr:10.0.0.172
mach:go host:go
[2000/04/06 07:10:07, 2] smbd/connection.c:utmp_update(491)
  utmp_update: fname:/var/run/utmpx
[2000/04/06 07:10:07, 2] smbd/connection.c:utmp_update(504)
  utmp_update: fname:/var/log/wtmpx

However nothing shows up in w or who.
Note that my files are without the final "x":
/var/run/utmp
/var/log/wtmp


-- 
giulioo at pobox.com


More information about the samba-technical mailing list