Patches for Solaris 8 compile
Toomas Soome
tsoome at ut.ee
Mon Mar 5 22:26:02 GMT 2001
On Mon, 5 Mar 2001, Jeremy Allison wrote:
> On Mon, Mar 05, 2001 at 08:47:33PM +0200, Toomas Soome wrote:
> >
> > ok, how about my patch for smbd/connections.c to deal with wtmpx logging
> > problem with solaris? the problem itself is clean and simple - finger, who
> > etc are looking for /dev/smb/connection_number and they fail, because
> > there is no such file. I have posted patch several times... :)
> >
> > anyway, I'll post it here again, its against 2_2:
> >
>
> I don't like the /dev/smb part of it. It doesn't make
> sense to me. What does it conceptually mean ? That's
> why I haven't applied it yet, as I don't like applying
> things I don't understand.
>
> Can you explain it a somewhat better (or maybe I'm just
> dumb).
>
ah, at last some feedback:)
ok, as I wrote, my finger, who etc become to complain about missing
/dev/smb/ entries. system is solaris 8. so, wew do have 2 options - to fix
utmp logging to behave like for example wu-ftpd:
[137] tsoome at madli:hs/txt> ftpwho
Service class local:
tsoome 27734 0.1 0.1 3720 3392 ? S 00:11:20 0:00 ftpd:
madli.ut.ee: tsoome: IDLE
- 1 users ( 40 maximum)
Service class remote:
zolki 27721 0.1 0.1 3880 3464 ? S 00:11:18 0:00 ftpd:
tiik.aklubi.ee: zolki: IDLE
- 1 users ( 40 maximum)
[140] tsoome at madli:hs/txt> last | less
neleht pts/260 ppp612.estpak.ee Tue Mar 6 00:11 - 00:11 (00:00)
tsoome ftp madli.ut.ee Tue Mar 6 00:11 - 00:11 (00:00)
zolki ftp tiik.aklubi.ee Tue Mar 6 00:11 - 00:11 (00:00)
asmik pts/63 adsl2449.estpak. Tue Mar 6 00:09 still logged in
so, we can see ftp from lastlog, but not from finger/who/...
the alternative way is to let utmp logging as it is and use the same idea
as dtlogin (CDE login) does in solaris - dtlogin does register sessions on
line /dev/dtremote, so you can see logins on line dtremote. and:
[144] tsoome at madli:hs/txt> ls -l /dev/dtremote
lrwxrwxrwx 1 root root 9 24. apr 2000 /dev/dtremote ->
/dev/null
so, I found this idea to be able to see smb sessions with finger to bee
good and since it only will require few lines of code to implement, why
not?
I have no idea, if this problem is problem for other unixes, but we do
have #if for this case....
toomas
--
The sixth shiek's sixth sheep's sick.
-- [just say that five times...]
More information about the samba-technical
mailing list