new utmp scheme
Andrew Bartlett
abartlet at samba.org
Tue Mar 8 08:10:52 GMT 2005
On Tue, 2005-03-08 at 09:05 +0100, Jan Engelhardt wrote:
> Hello list,
>
>
> currently, samba (3.0.9) creates utmp entries with "smb/#" as tty line, where
> # is a sequential number unique to Samba. I
>
> I wrote a patch that changes this behavior to follow that of (the
> long-forgotten) wu-ftpd, which uses "ftp#", where # is the _PID_.
> So the patch uses "smb#" (#=PID), which simplifies the session id handling
> code (w.r.t. utmp) a lot, and is also of more use to me than "smb/id".
>
> Patch is at http://linux01.org/~jengelh/samba_AS-utmp4.diff
> Opinions are welcome.
You may have many more than one login per smbd process. That is why
when utmp is not in use, we use /dev/smb/<pid>/<vuid> as the 'terminal'.
However, the utmp code requires the small, well-behaved number, and so
this is what we have.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Student Network Administrator, Hawker College http://hawkerc.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20050308/097440ea/attachment.bin
More information about the samba-technical
mailing list