(wtmp) Suggestion to samba

Edan Idzerda edan at mtu.edu
Mon May 11 03:06:34 GMT 1998


Joao Carlos Mendes Luis <jonny at coe.ufrj.br> wrote:
>   I think it would be useful if samba had a utmp log interface.
> I know that it's possible to see who is logged with smbstatus, but
> sometimes a simple who(1) or w(1) is more efficient and ubiquitous.

If you were to search for 'wtmp' in the 1997 archives 
(via the Samba web pages), you would find one interesting posting:

    http://samba.anu.edu.au/samba/digest/1997/97oct/0175.html

This posting describes using "sessreg" to log to utmp/wtmp.
sessreg is affiliated with xdm--it logs to utmp/wtmp as part
for users logging in through it.  You can use the 
"root preexec/postexec" hooks to use any program you like to 
keep track of logins and logouts.

Note, though, sessreg doesn't modify utmpx/wtmpx, which is a bummer
for OS's like Solaris 2.  rpc.rusersd and finger both look at utmpx,
not utmp, like "w" does.  I haven't decided whether to hack up 
sessreg or to use something else, but that's a different story.  :)

Good luck.

- edan



More information about the samba mailing list