[SunHELP] Why I failed to run rsh command ?

Li John-a16118 sunhelp at sunhelp.org
Sun Jul 29 21:00:16 CDT 2001


Sebastien,

Thanks for your great help. Yes, the "shell" line of file inetd.conf =
was commented carelessly.

Thanks for all your input.

Best Regards
John

-----Original Message-----
From: DAUBIGNE Sebastien - BOR [mailto:Sebastien.DAUBIGNE at sema.fr]
Sent: Friday, July 27, 2001 10:45 PM
To: sunhelp at sunhelp.org
Subject: RE: [SunHELP] Why I failed to run rsh command ?


I think it's not a .rhost  and hosts.equiv issue, as the rlogin (or rsh
without command) works fine. Both authentification scheme are =
identical.

The server-side daemon for rlogin/rsh without command is in.rlogind.
The server-side daemon for rsh with command is in.rshd.

You'd better check if theses services are activated. Check netstat and
/etc/inetd.conf :

> netstat -a | egrep 'shell|login' | grep LISTEN
      *.shell              *.*                0      0     0      0 =
LISTEN
      *.login              *.*                0      0     0      0 =
LISTEN
>  egrep 'shell|login' /etc/inetd.conf
shell   stream  tcp     nowait  root    /usr/sbin/in.rshd       in.rshd
login   stream  tcp     nowait  root    /usr/sbin/in.rlogind    =
in.rlogind
>  egrep 'shell|login' /etc/services =20
login           513/tcp
shell           514/tcp         cmd             # no passwords used

---
Sebastien DAUBIGNE=20
sebastien.daubigne at sema.fr - 05.57.26.56.36
Sema Global Services - AFM/DW/Pessac


	-----Message d'origine-----
	De:	Peter Stokes [SMTP:peter at ashlyn.co.uk]
	Date:	vendredi 27 juillet 2001 15:03
	=C0:	sunhelp at sunhelp.org
	Objet:	RE: [SunHELP] Why I failed to run rsh command ?

	Hi

	/.rhosts will work if you are root, but you will need
/etc/hosts.equiv
	setting up for non root I think (it should be in the man page for
rlogin/rsh
	etc)

	Peter
	---------------------------------
	Peter Stokes
	Ashlyn Computer Services Ltd
	Tel: +44 (0)1636-627900
	Fax: +44 (0)1636-627909
	Mbl: +44 (0)7977-532320
	Web: http://www.ashlyn.co.uk
	---------------------------------

	-----Original Message-----
	From: sunhelp-admin at sunhelp.org [mailto:sunhelp-admin at sunhelp.org]On
	Behalf Of William Enestvedt
	Sent: 27 July 2001 13:30
	To: 'sunhelp at sunhelp.org'
	Subject: RE: [SunHELP] Why I failed to run rsh command ?


	Did you check the /.rhosts file on each system?
	-wde
	--
	Will Enestvedt
	UNIX System Administrator
	Johnson & Wales University
	WEnestvedt at jwu.edu    (401) 598-1584

	> -----Original Message-----
	> From: Li Jiang [mailto:johnlee at bsc06.sc.mcel.mot.com]
	> Sent: Friday, July 27, 2001 6:28 AM
	> To: sunhelp at sunhelp.org
	> Subject: [SunHELP] Why I failed to run rsh command ?
	>
	>
	> Greetings everyone,
	>
	> I encounted a strange issue and want to get your advice.
	>
	> I can run "rsh hostB" from hostA, but I can't run "rsh  hostB
	> command" from
	> hostA. As you know, "rsh hostB" is equivalent to "rlogin
	> hostB". I don't know
	> what's wrong. A little background, hostA and hostB are
	> running SunOS2.7 and with
	> tcp_wrapper installed(default configuration).
	>
	> Thanks in advance.
	>
	> Best Regards
	> John Lee
	>
	> _______________________________________________
	> SunHELP maillist  -  SunHELP at sunhelp.org
	> http://www.sunhelp.org/mailman/listinfo/sunhelp
	>
	_______________________________________________
	SunHELP maillist  -  SunHELP at sunhelp.org
	http://www.sunhelp.org/mailman/listinfo/sunhelp

	_______________________________________________
	SunHELP maillist  -  SunHELP at sunhelp.org
	http://www.sunhelp.org/mailman/listinfo/sunhelp
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list