Por que o telnet reporta “login: -h somente para superusuário”?

1

Não consigo fazer o telnet no host local.

[root@localhost ~]# telnet localhost
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Kernel 2.6.18-194.el5PAE on an i686
login: -h for super-user only.
Connection closed by foreign host.


[root@localhost ~]# su - admin
[admin@localhost ~]$ telnet localhost
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
Kernel 2.6.18-194.el5PAE on an i686
login: -h for super-user only.
Connection closed by foreign host.
[admin@localhost ~]$

Qual pode ser a solução?

    
por Der Hochstapler 29.04.2011 / 10:21

2 respostas

2

No ano de 2011, a solução correta é não usar o telnet . Mude para SSH em vez disso: habilite sshd , então execute ssh 127.0.0.1 .

O daemon telnetd no seu sistema está configurado incorretamente: ele deve ser iniciado como root.

Edite seu arquivo de configuração inetd . Para xinetd , adicione user = root à definição de serviço telnet ; com o inetd clássico , o usuário é o quinto campo em /etc/inetd.conf . Quando terminar, pkill -HUP -f inetd .

    
por 29.04.2011 / 12:13
0

A solução é adicionar a seguinte linha a xinetd.conf

user=root

e reinicie o serviço xinetd.

    
por 02.05.2011 / 04:52

Tags