[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#50441: regarding bug #50441, xinetd not setting group for telnetd



severity 50441 fixed
thanks

Hello,

Thomas Lakofski wrote:
> when logging in via telnet entries remain in /var/run/utmp until the tty
> is reused by another login session.
[...]
> service telnet
> {
>       instances       = 32
>       socket_type     = stream
>       protocol        = tcp
>       wait            = no
>       user            = telnetd
>       server          = /usr/sbin/in.telnetd
>       server_args     = -h
> }

Herbert Xu wrote:
> xinetd is not setting the supplementary groups of non-root users.  This
> makes it incompatible with inetd.  So the correct fix is for xinetd to
> call setgroups for non-root users.

It appers that the only thing you (Thomas, the submitter) need to do is to
add this line:

        group           = telnetd

to that entry for telnet in your /etc/xinetd.conf file (or replace telnetd
with whatever is listed in your inetd.conf telnet entry).

That way, xinetd should set the group for telnetd daemon it runs.

And, after daemon upgrades, you should re-run one of these:

	xconv.pl < /etc/inetd.conf > /etc/xinetd.conf
	itox -daemon_dir /usr/sbin/tcpd < /etc/inetd.conf > /etc/xinetd.conf

To re-create the xinetd.conf file, with new settings. Yes, we know that
is a kludgy way, it should be automatic, but it's not implemented yet.
Although we shall try to do it, soon.

Thanks for reporting...

-- 
enJoy -*/\*- don't even try to pronounce my first name


Reply to: