From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,ad98900dab30cca X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,ad98900dab30cca X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-05-05 08:21:25 PST Xref: gmd.de comp.unix.osf.osf1:352 comp.sys.dec:7485 Newsgroups: comp.unix.osf.osf1,comp.sys.dec Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usc!cs.utexas.edu!utnut!helios.physics.utoronto.ca!sysmark From: sysmark@helios.physics.utoronto.ca (Mark Bartelt) Subject: Re: rsh to AXP OSF/1 fails for root Message-ID: Sender: news@helios.physics.utoronto.ca (News Administrator) Reply-To: mark@cita.toronto.edu Organization: University of Toronto Physics/Astronomy/CITA References: Date: Wed, 5 May 1993 15:14:35 GMT 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)" ]