Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Re: .rhosts & rsh on digital unix
       [not found] <8i8bq0$ibi$1@news01.cit.cornell.edu>
@ 2000-06-14  4:00 ` Adam Price
  2000-06-15  4:00   ` klgthree
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Price @ 2000-06-14  4:00 UTC (permalink / raw)



klgthree@spam.cornell.edu wrote in message <8i8bq0$ibi$1@news01.cit.cornell.edu>...
>
>I am having trouble rsh'ing (rlogin'ing) to our digital unix (alphas-
>some old, some new) boxes from a remote machine.  Testing with
>our aix iand sgi boxes, I get "standard" behavior: I include
>
>remote.machine.name loginname
>
>in my local .rhosts file and I am allowed in without password
>check (equivalently, I can rsh a command and it will be
>executed).  Doing this on the digital unix boxes does not
>allow access.  The man pages mention no other restrictions
>(using local .rhosts).  What is special about digital unix
>or what might I be overlooking that causes this behavior.
>

Added comp.unix.tru64 (a digital unix specific group) to the
newsgroup line.

Are you trying to do this as an ordinary user or as root?
What machine name does the digital unix machine think
you are coming in as?
Can you log in using rsh if you provide a password?
Are you using C2 security?

Hope this helps
Adam






^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: .rhosts & rsh on digital unix
  2000-06-14  4:00 ` .rhosts & rsh on digital unix Adam Price
@ 2000-06-15  4:00   ` klgthree
  2000-06-15  4:00     ` Adam Price
  2000-06-15  4:00     ` jr
  0 siblings, 2 replies; 6+ messages in thread
From: klgthree @ 2000-06-15  4:00 UTC (permalink / raw)


Adam Price (adam+usenet@pappnase.demon.co.uk) wrote:

: klgthree@spam.cornell.edu wrote in message <8i8bq0$ibi$1@news01.cit.cornell.edu>...
: >
: >I am having trouble rsh'ing (rlogin'ing) to our digital unix (alphas-
: >
(snips)
: >in my local .rhosts file and I am allowed in without password
: >check (equivalently, I can rsh a command and it will be
: >executed).  Doing this on the digital unix boxes does not
: >allow access.  The man pages mention no other restrictions
: >

: Added comp.unix.tru64 (a digital unix specific group) to the
: newsgroup line.

Thanks--I looked for the specific group first before asking here 
but our server does not carry it (accordingly, if you are kind
enough to respond to this through ...tru64, please make sure one
of the other groups is included)

: Are you trying to do this as an ordinary user or as root?

Ordinary user.

: What machine name does the digital unix machine think
: you are coming in as?

I don't know.  I assume it knows the correct one since our other
systems allow access through .rhosts and all the systems use
the same dns.

: Can you log in using rsh if you provide a password?

yes.

: Are you using C2 security?

I don't think so.  I don't know much about the security model but
recent reading leads me to believe it's not being used since I
have no OSC2_matrix.conf in /etc/sia.  I figure it's my ignorance
of sia that's causing the problem.  I came across a similar question
with linux 5.2 and the fix was to reorder authorizations in their
overall security model.

: Hope this helps

Thanks!

Kirk




--
Note - change address if replying to this post:
       klg3 AT cornell DOT edu     (<-- make the obvious changes...)




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: .rhosts & rsh on digital unix
  2000-06-15  4:00   ` klgthree
@ 2000-06-15  4:00     ` Adam Price
  2000-06-15  4:00       ` klgthree
  2000-06-15  4:00     ` jr
  1 sibling, 1 reply; 6+ messages in thread
From: Adam Price @ 2000-06-15  4:00 UTC (permalink / raw)



klgthree@spam.cornell.edu wrote in message <8i983s$rfr$1@news01.cit.cornell.edu>...
>Adam Price (adam+usenet@pappnase.demon.co.uk) wrote:
>
>: klgthree@spam.cornell.edu wrote in message <8i8bq0$ibi$1@news01.cit.cornell.edu>...
>: Are you trying to do this as an ordinary user or as root?
>
>Ordinary user.
OK Forget that then.

>
>: What machine name does the digital unix machine think
>: you are coming in as?
>
>I don't know.  I assume it knows the correct one since our other
>systems allow access through .rhosts and all the systems use
>the same dns.

OK
log in using rsh and a password, , notice the message you get
about last login and where it was from? Log out then log back in
and look where you just came from.
Make sure that is what gets put into the .rhosts file.

>
>: Can you log in using rsh if you provide a password?
>
>yes.
OK So the mechanism works.
Hope this helps
Adam Price







^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: .rhosts & rsh on digital unix
  2000-06-15  4:00   ` klgthree
  2000-06-15  4:00     ` Adam Price
@ 2000-06-15  4:00     ` jr
  2000-06-15  4:00       ` klgthree
  1 sibling, 1 reply; 6+ messages in thread
From: jr @ 2000-06-15  4:00 UTC (permalink / raw)
  To: klgthree



klgthree@spam.cornell.edu wrote:

> : >I am having trouble rsh'ing (rlogin'ing) to our digital unix (alphas-
> : >
> (snips)
> : >in my local .rhosts file and I am allowed in without password
> : >check (equivalently, I can rsh a command and it will be
> : >executed).  Doing this on the digital unix boxes does not
> : >allow access.  The man pages mention no other restrictions

I missed the original thread, I guess you checked "chmod 600 $HOME/.rhosts"

I had similiar problems due to wrongly set domain name, e.g. uname -a and
HOSTNAME in /etc/rc.config did not match up.

Cheers,
jr




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: .rhosts & rsh on digital unix
  2000-06-15  4:00     ` Adam Price
@ 2000-06-15  4:00       ` klgthree
  0 siblings, 0 replies; 6+ messages in thread
From: klgthree @ 2000-06-15  4:00 UTC (permalink / raw)



Hello again Adam,

Adam Price (adam+usenet@pappnase.demon.co.uk) wrote:

: klgthree@spam.cornell.edu wrote in message <8i983s$rfr$1@news01.cit.cornell.edu>...
: >Adam Price (adam+usenet@pappnase.demon.co.uk) wrote:
: >
: >: klgthree@spam.cornell.edu wrote in message <8i8bq0$ibi$1@news01.cit.cornell.edu>...
: >: Are you trying to do this as an ordinary user or as root?
: >
: >Ordinary user.
: OK Forget that then.

(my first reading interpreted that as "Forget trying to log in as an
ordinary user" but I quickly realized that the 'that' referred to 
the potential problem of trying to rsh as root :-)

..and here we have a winner:

: >
: >: What machine name does the digital unix machine think
: >: you are coming in as?
: >
: >I don't know.  I assume it knows the correct one since our other
: >systems allow access through .rhosts and all the systems use
: >the same dns.

: OK
: log in using rsh and a password, , notice the message you get
: about last login and where it was from? Log out then log back in
: and look where you just came from.

duh--I was pondering how I was going to tell what the machine "saw"
during the process (considering writing something that makes the
the same verification/naming/system calls to see what they).  Why
not look _after_?  Anyway, this indeed was the problem!  The offending
machine couldn't reverse-resolve the number and last login came from
the IP number, not the hostname.  I put the number in the .rhosts
file, and all was well!  Thanks for offering the paths of investigation,
with the solution at the end of one of them.  Using nslookup, I get the
correct the hostname so I have some more hunting to do to figure
out why with rsh it can't resolve the number (very likely related
to the harddrive crash of our NIS server (no slave :-) and it's
recovery/migration to another machine.  [That was fun.])

: Make sure that is what gets put into the .rhosts file.

as above, that fixed it!

: Hope this helps

Indeed it has.

Thanks again for answers, ideas and solution.

Kirk



--
Note - change address if replying to this post:
       klg3 AT cornell DOT edu     (<-- make the obvious changes...)




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: .rhosts & rsh on digital unix
  2000-06-15  4:00     ` jr
@ 2000-06-15  4:00       ` klgthree
  0 siblings, 0 replies; 6+ messages in thread
From: klgthree @ 2000-06-15  4:00 UTC (permalink / raw)


jr,


jr (at@at.at) wrote:


: klgthree@spam.cornell.edu wrote:

: > : >I am having trouble rsh'ing (rlogin'ing) to our digital unix (alphas-
: > : >
: > (snips)
: > : >in my local .rhosts file and I am allowed in without password
: > : >check (equivalently, I can rsh a command and it will be
: > : >executed).  Doing this on the digital unix boxes does not
: > : >allow access.  The man pages mention no other restrictions

: I missed the original thread, I guess you checked "chmod 600 $HOME/.rhosts"

Yes, the permissions were ok.

: I had similiar problems due to wrongly set domain name, e.g. uname -a and
: HOSTNAME in /etc/rc.config did not match up.

Thanks for the info--I'll try to stash it away for next time!  Through
another suggestion, I found out that the machine couldn't reverse
resolve the IP address and I used that instead of the name and
it worked.

Thanks again for the response.

'ter,
Kirk


--
Note - change address if replying to this post:
       klg3 AT cornell DOT edu     (<-- make the obvious changes...)




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2000-06-15  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <8i8bq0$ibi$1@news01.cit.cornell.edu>
2000-06-14  4:00 ` .rhosts & rsh on digital unix Adam Price
2000-06-15  4:00   ` klgthree
2000-06-15  4:00     ` Adam Price
2000-06-15  4:00       ` klgthree
2000-06-15  4:00     ` jr
2000-06-15  4:00       ` klgthree

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox