Re: new utmp scheme
On Tue, 2005-03-08 at 09:05 +0100, Jan Engelhardt wrote:[color=blue]
> Hello list,
> currently, samba (3.0.9) creates utmp entries with "smb/#" as tty line, w=[/color]
> # is a sequential number unique to Samba. I=20
> I wrote a patch that changes this behavior to follow that of (the=20
> long-forgotten) wu-ftpd, which uses "ftp#", where # is the _PID_.
> So the patch uses "smb#" (#=3DPID), which simplifies the session id handl=[/color]
> code (w.r.t. utmp) a lot, and is also of more use to me than "smb/id".
> Patch is at [url]http://linux01.org/~jengelh/samba_AS-utmp4.diff[/url]
> Opinions are welcome.[/color]
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 [url]http://samba.org/~abartlet/[/url]
Authentication Developer, Samba Team [url]http://samba.org[/url]
Student Network Administrator, Hawker College [url]http://hawkerc.net[/url]
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
-----END PGP SIGNATURE-----