Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* rsh to AXP OSF/1 fails for root
@ 1993-05-05 13:26 Mark Bartelt
  1993-05-05 15:14 ` Mark Bartelt
  1993-05-05 17:00 ` Ron Natalie
  0 siblings, 2 replies; 3+ messages in thread
From: Mark Bartelt @ 1993-05-05 13:26 UTC (permalink / raw)


I don't seem to be able to figure out how to make "rsh" work for uid 0
under AXP OSF/1.  Suppose host "foo" is an AXP running OSF/1, "spam" is
some other UNIX system (doesn't matter what flavour), and "spam root" is
in the /.rhosts file on "foo".  If I'm logged in as root on "spam", and
type
	rsh foo date

I get the following error message:

	rshd, : No such file or directory

Just putting "hostname root" in /.rhosts works fine under other UNIXes,
and I'm ~99% certain that it worked in the pre-release beta test version
of DEC OSF/1 (T1.2-2 Rev 5), but I can't check for certain because the
system with that version isn't here any longer.

I've tried obvious things such as putting other variants of the hostname
into the /.rhosts file (e.g. the fqdn), but the symptom remains the same.
By the way, "rsh" works fine for uids other than 0, by putting appropriate
information into /etc/hosts.equiv (or the user's $HOME/.rhosts).

I've read the man pages for rsh, rshd, and other related things, but I've
not found anything that might suggest where the problem lies.  (The above
error message, by the way, isn't even mentioned in the rshd man page.)

I'm stumped; any suggestions?

Mark Bartelt                                                  416/978-5619
Canadian Institute for                               mark@cita.toronto.edu
Theoretical Astrophysics                             mark@cita.utoronto.ca

"Clothes not busy being worn are busy drying."   -   Dylan, on laundry day
           [ singing "It's all right, ma (I'm only bleaching)" ]


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

* Re: rsh to AXP OSF/1 fails for root
  1993-05-05 13:26 rsh to AXP OSF/1 fails for root Mark Bartelt
@ 1993-05-05 15:14 ` Mark Bartelt
  1993-05-05 17:00 ` Ron Natalie
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Bartelt @ 1993-05-05 15:14 UTC (permalink / raw)


Well, less than an hour after broadcasting my problem to the world, I've
been swamped with replies!  Thanks, gang!

A couple people mis-read what I wrote (or perhaps what I wrote was a bit
ambiguous), suggesting that I should upgrade from beta test AXP OSF/1 to
the official release (we *have* the official release; I'd commented that
I was pretty sure it *had* worked under the field test version).  One or
two people suggested checking that the permission on /.rhosts was right
(0600, as many UNIXes insist on this); I'd intended to mention that I'd
already confirmed that this was the case, but I forgot to include it.

The winners in this edition of "What's My Problem?" are two DECies, Matt
Thomas (many thanks!) and Birgit Schiefer (viel Dank!).  As it turns out,
although a null field in the last position of /etc/passwd implies /bin/sh
as far as login(1) is concerned, the same isn't true for rshd.  You must
explicitly specify /bin/sh if you want the Bourne shell.  I think it would
have taken me a *long* time to think of trying this.

Presumably, the people who replied "gee, it works for me" all have some
non-null field in the shell field of root's password file entry.  (As it
turns out, of course, there wasn't really any correlation between this
problem and uid 0.  It's just that the particular /etc/passwd being used
on the system in question happened to have a null shell for root, but not
for the other users.)

By the way, one can argue that either this is a bug in rshd, or else it's
a documentation error.  The rshd(8) man page says that "the command line
is passed to the normal login shell of the user", and the passwd(4) man
page says that "if the shell field is empty, the Bourne shell (/bin/sh)
is assumed".  Since most (all?) other UNIXes have an rshd which makes the
same "(NULL) => /bin/sh" assumption as login(1) does, I'd lean toward an
"rshd is buggy" interpretation.

So can we hope that either rshd will be fixed in the next release, or at
least the man page will be fixed to correspond to its aberrant behaviour?

Thanks again to all!

Mark Bartelt                                                   416/978-5619
Canadian Institute for                                mark@cita.toronto.edu
Theoretical Astrophysics                              mark@cita.utoronto.ca

"Sheep not busy being shorn are busy frying" - Dylan, at a NZ lamb barbecue
            [ singing "It's all right, ma (I'm only bleating)" ]


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

* Re: rsh to AXP OSF/1 fails for root
  1993-05-05 13:26 rsh to AXP OSF/1 fails for root Mark Bartelt
  1993-05-05 15:14 ` Mark Bartelt
@ 1993-05-05 17:00 ` Ron Natalie
  1 sibling, 0 replies; 3+ messages in thread
From: Ron Natalie @ 1993-05-05 17:00 UTC (permalink / raw)


> I don't seem to be able to figure out how to make "rsh" work for uid 0

Works for me, are you sure that...

	Root's home directory is /
	The /.rhosts file is not writable to others and owned by root?

However, the message sort of implies that perhaps rshd doesn't work at
all, are you sure it's where inetd.conf thinks it is.

-Ron


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

end of thread, other threads:[~1993-05-05 17:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-05-05 13:26 rsh to AXP OSF/1 fails for root Mark Bartelt
1993-05-05 15:14 ` Mark Bartelt
1993-05-05 17:00 ` Ron Natalie

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