Fedora16 telnet configuration and enable root login 1. install the software package www.2cto.com 1 and # rpm-q telnet (check whether the client is installed) (if not installed # yum install telnet) 2. # rpm-q telnet-server (check whether the server is installed) (for example, if not # yum installtelnet-server) 2. How to enable service 1: # vi/etc/xinetd. d/telnet to find disable = yes: Here, change yes to no attached vi Common commands to restart xinetd: # service xinetd restart 3. Change the telnet port if the firewall is enabled. Open port 23. # Iptables-I input-p tcp -- dport 23-j ACCEPT # iptables-I INPUT-p udp -- dport 23-j ACCEPTok. Telnet ~ Change the default port of telnet to 23, if you want to change # vi/etc/services to find telnet 23/tcptelnet 23/udp, change 23 to the desired port number www.2cto.com 4. Telnet service restrictions # vi/etc/xinetd. d/telnet where service telnet {disable = no # activate the telnet service, and enter nobind = ***. ***. ***. * ** # your IP address only_from = 192.168.0.0/16 # here, only 192.168.0.0 ~ The IP address of 192.168.255.255 enters the telnet server only_from = .edu.cn # Only allow .edu.cn to enter no_access = 192.168.1. {13,14} # The two IP addresses cannot log on to access_times = Am-# The time period that is open every day ............} 5. root User Login (by default, root users cannot log on, but restrictions can be lifted) method 1, # vi/etc/pam. d/login # Find auth required pam_securetty.so and watch this line. 2. # mv/etc/securetty. bak (delete the/etc/securetty file) or add pts/0pts/1... pts/11