CentOS allows telnet to be accessed by the root user

Source: Internet
Author: User
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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.