Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does CentOS allow telnet access through root users

2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how CentOS allows telnet to access through root users". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

CentOS:

[root@clovem ~] # yum install telnet-server-y / / install telnet server [root@clovem ~] # cat / etc/xinetd.d/telnet / / enable telnet's managed service # default: on# description: The telnet server serves telnet sessions It uses\ # unencrypted username/password pairs for authentication.service telnet {flags= REUSEsocket_type= streamwait= 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 effective

The following actions enable root user login to take effect

[root@clovem ~] # mv / etc/securetty / etc/securetty.bak

In this way, root can go directly to the Linux host. However, it is not recommended to do so. You can also switch to the root user after the ordinary user enters, and have the permission of root.

Red Hat Enterprise Linux AS release 4

Need to modify: krb5-telnet

[root@rawlnx ~] # cat / etc/xinetd.d/krb5-telnet# default: off# description: The kerberized 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}

Configuration complete, restart the xinetd service

Solaris: comment on the CONSOLE line of this file, effective directly

-bash-3.00# cat / etc/default/login | grep CONSOLE# If CONSOLE is set, root can only login on that device.#CONSOLE=/dev/console, "how does CentOS allow telnet access through root users" ends here, thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report