linux 服务器 远程不能用root 登陆 普通的可以 我已修改etc/secureety

由 benjiam 在 01-22-2003 13:52 发表:

linux 服务器 远程不能用root 登陆 普通的可以 我已修改etc/secureety

主题:linux 服务器 远程不能用root 登陆 普通的可以 (2003-01-22 13:47:31)

--------------------------------------------------------------------------------

我已经在etc/secureety 里加入了ttyp0

ttyp1

机器为linuxredhat6.2 刚装好的

我登陆以后用who 发现

pts/0 是我登陆的端口

我把这个也加上了 但是 还是无效


由 Pye 在 01-22-2003 22:53 发表:


你用的是telnet么?

telnet是默认是不能用root登陆的,还是用ssh比较好一些。


由 大熊宝宝 在 01-23-2003 18:58 发表:


RedHat 7.X 适用,若是 RedHat 6.X 以前,则是加在 /etc/securetty 的最后面,范例如下

vc/1

vc/2

vc/3

vc/4

vc/5

vc/6

vc/7

vc/8

vc/9

vc/10

vc/11

tty1

tty2

tty3

tty4

tty5

tty6

tty7

tty8

tty9

tty10

tty11

0

1

2

加入 0 , 1 , 2 ... 表示开放远程 root telnet 的数目,0

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus