Samba utmp patch
David Lee
T.D.Lee at durham.ac.uk
Thu Apr 6 16:07:58 GMT 2000
On Thu, 6 Apr 2000, Giulio Orsero wrote:
> On Thu, 6 Apr 2000 13:55:03 +0100 (BST), hai scritto:
>
> >A typo in the typo-correction. Should be "u->ut_host". (Should resemble
> >other references (u->...).
>
> ok
Phew! Glad that's OK.
> 1)
> utmp = yes
>
> [2000/04/06 16:45:18, 2] smbd/connection.c:uw_pathname(470)
> uw_pathname: unable to determine pathname
> [2000/04/06 16:45:18, 2] smbd/connection.c:utmp_update(491)
> utmp_update: fname:
> [2000/04/06 16:45:18, 2] smbd/connection.c:uw_pathname(470)
> uw_pathname: unable to determine pathname
> [2000/04/06 16:45:18, 2] smbd/connection.c:utmp_update(504)
> utmp_update: fname:
>
> who/w work, last does not work
A pity, it doesn't seem to find the defaults. But see below.
> 2)
> utmp = yes
> utmp dir = /var/run
>
> [2000/04/06 16:46:37, 2] smbd/connection.c:utmp_update(491)
> utmp_update: fname:/var/run/utmpx
> [2000/04/06 16:46:37, 2] smbd/connection.c:utmp_update(504)
> utmp_update: fname:/var/run/wtmpx
>
> who/w work, last does not work
Given redhat's preferred different locations for u- and w- files, and
given that configure hasn't found either, this is as expected.
>
> 3)
> utmp = yes
> utmp dir = /var/run
> wtmp dir = /var/log
>
> [2000/04/06 16:48:00, 2] smbd/connection.c:utmp_update(491)
> utmp_update: fname:/var/run/utmpx
> [2000/04/06 16:48:00, 2] smbd/connection.c:utmp_update(504)
> utmp_update: fname:/var/log/wtmpx
>
> w who and last all work!!!
Excellent.
> 4)
> utmp = yes
> utmp dir = /var/run
> wtmp dir = /var/log
> utmp consolidate = yes
>
> [2000/04/06 16:51:52, 2] smbd/connection.c:utmp_claim(571)
> utmp_claim: utmp consolidate: 3 entries open
>
> who w and last don't work
That's peculiar. I'd need more details. The "utmp consolidate" option
worked OK here. (As you open and close shares within a connection, these
"entries open" debug lines should be generated. The first open and last
close should actually do a utmp update. Did you give Samba a clean start
before doing this trial?)
>
>
> Basically w/who/last now work on a redhat system.
Excellent.
Obviously it would be better if the defaults could be made to work. But
being a "--with..." option, this is an "experimental" feature, after all.
So it looks OK (though slightly short of ideal).
Finding the defaults will require someone with access to redhat to do some
investigation. I see from the redhat "include" files you sent me that
there seem to be some subtleties about "#define *PATH*" things in the -x
files, and an interaction with a "__USE_GNU" variable.
So from the redhat perspective, I think the patch is successful enough to
ask Jeremy to include it.
Thanks for your work on this.
--
: David Lee I.T. Service :
: Systems Programmer Computer Centre :
: University of Durham :
: http://www.dur.ac.uk/~dcl0tdl South Road :
: Durham :
: Phone: +44 191 374 2882 U.K. :
More information about the samba-technical
mailing list