rsh Authentication

Hello,

I’m trying to use rsh in several forms (usually from Sun to Qnx). There are
two forms that fail with “permission denied” errors on the Qnx server:

  1. Trying to remote login as user root always fails when the root has a
    password. I tried to put appropriate entries in both /etc/hosts.equiv and
    /.rhosts files like:

    or
    +

But unsuccessfully. Is there a way to enable this option on Qnx?

  1. I the sysinit script, I am trying to start an initialization script of
    our application as another user:
    rsh -l

This also fail is the has a password. I tried to use the local host
name in the /etc/hosts.equiv or the ~/.rhosts files, but the operatopn
still fails.

Can anyone help?

Danny Gera
Orbotech Ltd.

Danny Gera <danny-g@orbotech.com> wrote:

Hello,

I’m trying to use rsh in several forms (usually from Sun to Qnx). There are
two forms that fail with “permission denied” errors on the Qnx server:

  1. Trying to remote login as user root always fails when the root has a
    password. I tried to put appropriate entries in both /etc/hosts.equiv and
    /.rhosts files like:
    remote host> +

But unsuccessfully. Is there a way to enable this option on Qnx?

rlogin and rsh as root without giving a password may not be able to be
done. I seem to remember there was a check in rlogind that was failing
this case. Not sure if that is still the case.

  1. I the sysinit script, I am trying to start an initialization script of
    our application as another user:
    rsh -l <script file

This also fail is the has a password. I tried to use the local host
name in the /etc/hosts.equiv or the ~/.rhosts files, but the operatopn
still fails.

In setting up the /etc/hosts.equiv and ~/.rhosts files, you also have to
be careful of the permissions on those files. For the hosts.equiv, the
files must be owned by root, writeable only by owner. For the .rhosts
files, the file must be owned by the user, and writeable only by the
owner. Otherwise, the attempt will be failed.

Testing as root, does “rlogin -l user” work?

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Thanks for the help. Using the right permissions does it.

Danny


“David Gibbs” <dagibbs@qnx.com> wrote in message
news:abr6l7$fo9$2@nntp.qnx.com

Danny Gera <> danny-g@orbotech.com> > wrote:
Hello,

I’m trying to use rsh in several forms (usually from Sun to Qnx). There
are
two forms that fail with “permission denied” errors on the Qnx server:

  1. Trying to remote login as user root always fails when the root has a
    password. I tried to put appropriate entries in both /etc/hosts.equiv
    and
    /.rhosts files like:
    remote host> +

But unsuccessfully. Is there a way to enable this option on Qnx?

rlogin and rsh as root without giving a password may not be able to be
done. I seem to remember there was a check in rlogind that was failing
this case. Not sure if that is still the case.

  1. I the sysinit script, I am trying to start an initialization script
    of
    our application as another user:
    rsh -l <script file

This also fail is the has a password. I tried to use the local
host
name in the /etc/hosts.equiv or the ~/.rhosts files, but the
operatopn
still fails.

In setting up the /etc/hosts.equiv and ~/.rhosts files, you also have to
be careful of the permissions on those files. For the hosts.equiv, the
files must be owned by root, writeable only by owner. For the .rhosts
files, the file must be owned by the user, and writeable only by the
owner. Otherwise, the attempt will be failed.

Testing as root, does “rlogin -l user” work?

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Danny Gera <danny-g@orbotech.com> wrote:

Thanks for the help. Using the right permissions does it.

You’re welcome, glad to hear you’ve got it working.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.