CentOS: [root @ clovem ~] # Yuminstalltelnet-server-y // install the telnet server [root @ clovem ~] # Cat/etc/xinetd. d/telnet // enable the telnet hosting service # default: on # description: Thetelnetserverserveste
CentOS:
|
[Root @ clovem ~] # Yum install telnet-server-y // install telnet server [root @ clovem ~] # Cat/etc/xinetd. d/telnet // enable The telnet hosting service # default: on # description: The telnet server serves telnet sessions; it uses \ # unencrypted username/password pairs for authentication. service telnet {flags = REUSEsocket_type = stream wait = nouser = rootserver =/usr/sbin/in. telnetdlog_on_failure + = USERIDdisable = no // change yes to no} [root @ clovem ~] # Service xinetd restart // restart the managed service to make the configuration file take effect |
Follow these steps to make the root user logon take effect:
[Root @ clovem ~] # Mv/etc/securetty. bak
In this way, the root user can directly access the Linux host. However, we recommend that you do not do this. You can also switch to the root user after a common user enters, with the root permission.
Red Hat Enterprise Linux AS release 4
Need to modify: krb5-telnet
|
[Root @ rawlnx ~] # Cat/etc/xinetd. d/krb5-telnet # default: off # description: The authenticated telnet server accepts normal telnet sessions, \ # but can also use Kerberos 5 authentication. service telnet {flags = REUSEsocket_type = streamwait = nouser = rootserver =/usr/kerberos/sbin/telnetdlog_on_failure + = USERIDdisable = no} |
After the configuration is complete, restart the xinetd service.
Solaris: comments the CONSOLE line of this file and takes effect directly.
|
-Bash-3.00 # cat/etc/default/login | grep CONSOLE # If CONSOLE is set, root can only login on that device. # CONSOLE =/dev/console |