How to make root directly connected to the host

xiaoxiao2021-03-06  59

How to make root directly connected to the host

Prerequisites: /etc/xinetd.d/telnet file DISABLE = NO

Basically, Telnet is not very safe. Under the case of natural presets, it is unable to allow root to log in to Linux hosts in telnet!

However, in fact, Telnet just uses the PAM module to control root's login, so if you determine your environment is safe enough

(For example, your host is not connected to the Internet, and if you want to open ROOT to log in to Linux hosts in Telnet, please modify

/etc/pam.d/login This file is set to:

Shield the second line!

#auth request /lib/security/pam_securetty.so

Then reactivate Xinetd to recover the settings in the XINETD!

/etc/rc.d/init.d/xinetd Stop

/etc/rc.d/init.d/xinetd start

In this way, root will be able to enter the Linux host directly! However, it is still not recommended to do it!

转载请注明原文地址:https://www.9cbs.com/read-114637.html

New Post(0)