How to enable the root user to log on via telnet-general Linux technology-Linux technology and application information. The following is a detailed description. Recently, I often read things in windows and perform experiment operations on linux virtual machines. To avoid switching, I use telnet to log on, but I cannot operate some directories, so I tried to log in as a root user, but it always failed. I found the following solution on the Internet to share with you:
Telnet is not very secure. By default, root is not allowed to Telnet to Linux/"target = _ blank> Linux host. To allow the root user to log on, use the following methods:
[Root @ echo/root] # vi/etc/pam. d/login
# Auth required pam_securetty.so # Add comments to this line!
Or
[Root @ echo root] # 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.
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