Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: sysmark@helios.physics.utoronto.ca (Mark Bartelt)
Subject: Re: rsh to AXP OSF/1 fails for root
Date: Wed, 5 May 1993 15:14:35 GMT	[thread overview]
Message-ID: <C6K7oB.KrM@helios.physics.utoronto.ca> (raw)
In-Reply-To: C6K2ou.FrC@helios.physics.utoronto.ca

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)" ]


  reply	other threads:[~1993-05-05 15:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-05-05 13:26 rsh to AXP OSF/1 fails for root Mark Bartelt
1993-05-05 15:14 ` Mark Bartelt [this message]
1993-05-05 17:00 ` Ron Natalie
read-only archive

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