----- Original Message -----
From: "Michael Hasenstein"
Joe & Sesil Morris (NTM) wrote:
Dmitry Melekhov wrote:
Hello!
I need temporarity allow rsh for root. I added -h key to rshd and rlogind in /etc/inetd.conf, kill -1 inetd, added .rhosts for root, but I still can't login using rsh to this machine :-( For any other user rsh works OK Any ideas?
Why don't just log in as a user, then su to root? It seems safer than allowing remote root logins.
Exactly.
To answer the question, though: Have a look at file /etc/securetty, which lists on which tty's "root" is allowed to login.
:-( I don't want to allow telnet to root! I want only allow rsh for root. Strange ;-) , but this works in RH 6.2: [root@p100 /root]# telnet oraserv.p100.belkam.com Trying 192.168.21.117... Connected to oraserv.p100.belkam.com. Escape character is '^]'. Red Hat Linux release 6.2 (Zoot) Kernel 2.2.14-5.0 on an i686 login: root Password: Login incorrect [root@p100 /root]# rsh oraserv.p100.belkam.com Last login: Tue Jul 23 21:45:36 from p100.p100.belkam.com RH 6.2 does it out of box. I want the same behaviour in SLES7. Could somebody help me? About security. Sorry, but I know that rsh is insecure, it is secure enough for my needs ;-)