Allow the root user to telnet directly to the System

Source: Internet
Author: User
Article Title: allow the root user to telnet directly from the system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
For the sake of security, the linxu system does not allow the root account to directly access the system from the remote telnet. If you want to use the root identity management system, you should first enter the system with a common user account, and then run the "su-" command to convert it to a root user.

However, sometimes, to be lazy, I like to use the root identity to telnet into the system. How can this problem be achieved?

In the case of blue point 1.0, the pam mechanism is used to restrict the root user to directly telnet to the system.

In the/etc/pam. d/login file, you can find:

Auth required/lib/security/pam_securetty.so

This pam_securetty.so file will read the securetty file in the/etc/directory. If the user logs on to the tty file at the/etc/securetty location, allow the connected user to log on to the host using the root account. So we only need to add a "#" at the beginning of this line to shield this line.
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.