RE: rsh still fails

From: Rancier, Jeff (Jeff.Rancier@Sensis.com)
Date: Mon Jun 06 2005 - 18:20:48 EDT


First of all thanks for all the replies, very helpful! This is the solution
that worked. The interesting thing is that instead of creating an entry
with a username (as per the man page), it is simply the FQDM, that's it.
But I'm not that interested now that it works. For those who are
interested, uname -a reports:

SunOS jrsun 5.8 Generic_108528-17 sun4u sparc SUNW,Sun-Blade-100

| -----Original Message-----
| From: Crist Clark [mailto:crist.clark@globalstar.com]
| Sent: Monday, June 06, 2005 5:47 PM
| To: Rancier, Jeff
| Subject: Re: rsh still fails
|
|
| Rancier, Jeff wrote:
| > I've googled, read the archives, used man, and still get
| get "permission
| > denied" when attempting rsh. I've created both a ~/.rhosts and a
| > /etc/hosts.equiv. Both with the entries in the format
| >
| > +myhost.this.that.com +myname
| > +123.234.345.456 +myname
| >
| > I also tried it without the '+'s as well. I've commented
| of the CONSOLE in
| > /etc/default/login. I double checked /etc/inet/inetd.conf
| to make sure the
| > 'shell stream tcp nowait root /usr/sbin/in.rshd in.rshd'
| line is there, I've
| > added the rsh caller's hosts entry in the /etc/inet/hosts
| file. I even took
| > an ethereal trace to ensure the request was on port 514.
| >
| > I can't think of anything else to try. Ideas?
|
| The rhost "authentication" has the annoying habit of ONLY using the
| first name it gets back when resolving a hostname by IP. Try,
|
| $ perl -e 'use Socket;print
| scalar(gethostbyaddr(inet_aton("123.234.345.456"), AF_INET)),
| "\n";' > .rhosts
|
| This should put the right hostname in the user's .rhost file.
| --
| Crist J. Clark
| crist.clark@globalstar.com
| Globalstar Communications
| (408) 933-4387
|
| The information contained in this e-mail message is confidential,
| intended only for the use of the individual or entity named above.
| If the reader of this e-mail is not the intended recipient, or the
| employee or agent responsible to deliver it to the intended recipient,
| you are hereby notified that any review, dissemination,
| distribution or
| copying of this communication is strictly prohibited. If you have
| received this e-mail in error, please contact
| postmaster@globalstar.com
|
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:51 EDT