rsh problem

rsh problem

Post by K. K. T » Mon, 13 Sep 1999 04:00:00



I try to run "rsh <host> command" from a FreeBSD system to a Solaris,
HP-UX, SGI IRIX system with proper .rhosts set up and always get the
"Permission denied" error.  I wonder if anyone has clues on this
problem and what is the workaround.

There is no problem to do the operation from the above systems to
the FreeBSD or among themselves.  Besides, there is no problem
between 2 FreeBSD systems too.

Thanks in advance.

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

Information Technology Services Center      |                        |
Hong Kong University of Science & Technology| Tel: (852) 2358 6246   |
Clear Water Bay                             |                        |
Kowloon, Hong Kong                          | Fax: (852) 2358 0967   |
----------------------------------------------------------------------

 
 
 

rsh problem

Post by K. K. T » Mon, 13 Sep 1999 04:00:00


The OS version that I've tried for various systems are as follows.

FreeBSD: 3.2-RELEASE
Solaris: 7 or 2.6
SGI IRIX: 6.5.2
HP-UX: 10.2


: I try to run "rsh <host> command" from a FreeBSD system to a Solaris,
: HP-UX, SGI IRIX system with proper .rhosts set up and always get the
: "Permission denied" error.  I wonder if anyone has clues on this
: problem and what is the workaround.

: There is no problem to do the operation from the above systems to
: the FreeBSD or among themselves.  Besides, there is no problem
: between 2 FreeBSD systems too.

: Thanks in advance.

: ----------------------------------------------------------------------

: Information Technology Services Center      |                        |
: Hong Kong University of Science & Technology| Tel: (852) 2358 6246   |
: Clear Water Bay                             |                        |
: Kowloon, Hong Kong                          | Fax: (852) 2358 0967   |
: ----------------------------------------------------------------------

 
 
 

rsh problem

Post by Ian Diddam » Wed, 15 Sep 1999 04:00:00



> I try to run "rsh <host> command" from a FreeBSD system to a Solaris,
> HP-UX, SGI IRIX system with proper .rhosts set up and always get the
> "Permission denied" error.  I wonder if anyone has clues on this
> problem and what is the workaround.

Is the rsh host known to the rsh client?  ie is it in
/etc/hosts/available via NIS hosts file?

Is the user "the same" on both machines ie same UID?

--
Didds

 
 
 

rsh problem

Post by Ian Diddam » Wed, 15 Sep 1999 04:00:00



> I try to run "rsh <host> command" from a FreeBSD system to a Solaris,
> HP-UX, SGI IRIX system with proper .rhosts set up and always get the
> "Permission denied" error.  I wonder if anyone has clues on this
> problem and what is the workaround.

and another thought.....

Is rshd enabled in /etc/inetd.conf on the other boxes?

--
Didds

 
 
 

rsh problem

Post by Courtney Thoma » Wed, 15 Sep 1999 04:00:00




> > I try to run "rsh <host> command" from a FreeBSD system to a Solaris,
> > HP-UX, SGI IRIX system with proper .rhosts set up and always get the
> > "Permission denied" error.  I wonder if anyone has clues on this
> > problem and what is the workaround.

> Is the rsh host known to the rsh client?  ie is it in
> /etc/hosts/available via NIS hosts file?

> Is the user "the same" on both machines ie same UID?

> --
> Didds

Greetings !

I too have hit this wall.
I have the same entries for both systems in  /etc/hosts. I am NOT running
NIS. Does this matter ?

I am attempting rsh as root under FreeBSD, with a SCO box as server. rshd
is in inetd.conf in both systems, as "shell".

root in both machines has UID=0 but GID is 0 in FreeBSD and 1 in SCO.

Any other suggestions would be appreciated.

Cordially,


 
 
 

rsh problem

Post by k.k... » Thu, 16 Sep 1999 04:00:00





> > I try to run "rsh <host> command" from a FreeBSD system to a
Solaris,
> > HP-UX, SGI IRIX system with proper .rhosts set up and always get the
> > "Permission denied" error.  I wonder if anyone has clues on this
> > problem and what is the workaround.

> Is the rsh host known to the rsh client?  ie is it in
> /etc/hosts/available via NIS hosts file?

> Is the user "the same" on both machines ie same UID?

> --
> Didds

Sorry for the late response.

Yes, it is known with DNS by default.  I've also tried with the
/etc/hosts and it doesn't help.  For the UID, it is not the
same with the initial set up.  It doesn't work either as they
are the same.  The rshd is enabled by the inetd.

Regards,
K. K. Tam

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

1. TCP Wrapper / rsh problem (rsh hangs)

I just set up TCP Wrapper 7.1 on a SunOS 4.1.3 server.  We have all of our
client workstations in a netgroup called 'alltrust', and want to allow only
those workstations to rsh the server.  I have tcpd setup correctly (I believe)
in inetd.conf, and the access control files as:

/etc/hosts.allow

/etc/hosts.deny
        in.rshd: ALL: DENY

(I did a kill -HUP on inetd on the server when I changed inetd.conf).  When
I tested the wrapper out, I used a client in alltrust and a client not in
alltrust.  Luckily, the wrapper logs the successes and failures of rsh'ing to
the server correctly.  However, when a client not in alltrust tries to rsh to
the server (i.e. rsh server id), rsh just hangs.  I tried a test with telnet
and everything went fine.  Does anyone have an idea of what might be the
problem?

    A second, but minor, problem is that if I implement /etc/hosts.allow
as

it allows anyone to rsh to the server, even clients not in alltrust.  Any
clue as to what might be causing this?

                                --John

2. PGP and elm

3. rsh problem and NIS problem

4. Help in disk recovery

5. rsh problem

6. Canon BJ10

7. rsh problem on aix 4.1.4

8. RSH problem from Linux to Solaris 2.6

9. weird rsh problem

10. RSH problems

11. rsh problems under Solaris 2.5

12. rsh problem