Gentoo will not come with a telnetd preinstalled, if you want to login with a telnet to your Gentoo box you could follow these step (running as root user):

  • Install the xinetd internet superserver daemon:

# emerge sys-apps/xinetd

  • Wait for the end of the emerge step
  • Edit /etc/xinetd.conf configuration file to permit outside logins:

#

# This is the master xinetd configuration file. Settings in the

# default section will be inherited by all service configurations

# unless explicitly overridden in the service configuration. See

# xinetd.conf in the man pages for a more detailed explanation of

# these attributes.


defaults

{

# The next two items are intended to be a quick access place to

# temporarily enable or disable services.

#

#       enabled         =

#       disabled        =


# Define general logging characteristics.

        log_type        = SYSLOG daemon info

        log_on_failure  = HOST

        log_on_success  = PID HOST DURATION EXIT


# Define access restriction defaults

#

#       no_access       =

#       only_from       =

#       max_load        = 0

        cps             = 50 10

        instances       = 50

        per_source      = 10


# Address and networking defaults

#

#       bind            =

#       mdns            = yes

        v6only          = no


# setup environmental attributes

#

#       passenv         =

        groups          = yes

        umask           = 002


# Generally, banners are not used. This sets up their global defaults

#

#       banner          =

#       banner_fail     =

#       banner_success  =

}

includedir /etc/xinetd.d

  • Install the telnetd server daemon

 

# emerge netkit-telnetd

     

    • Configure the telnetd daemon editing the /etc/xinetd.d/telnetd file

     

    service telnet

    {

            flags           = REUSE

            socket_type     = stream

            wait            = no

            user            = root

            server          = /usr/sbin/in.telnetd

            log_on_failure += USERID

            disable         = no

    }

    • Restart the internet superserver daemon

    # /etc/init.d/xinetd restart

    • Add the telnetd daemon as startup daemon

    # rc-update add xinetd default

    • To give the possibility to login as root trough a telnet you shall modify the /etc/securetty configuration file:

    # echo "pts/0" >>/etc/securetty

    # echo "pts/1" >>/etc/securetty

    # echo "pts/2" >>/etc/securetty

    # echo "pts/3" >>/etc/securetty

    # echo "pts/4" >>/etc/securetty

    # echo "pts/5" >>/etc/securetty

    # echo "pts/6" >>/etc/securetty

    # echo "pts/7" >>/etc/securetty

    # echo "pts/8" >>/etc/securetty

    # echo "pts/9" >>/etc/securetty


     
    That's all.
    Gg1.