*BSD News Article 83673


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.sgi.com!news.mathworks.com!news.sprintlink.net!news-peer.sprintlink.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@anorak.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Problems with rlogin or rsh.
Date: 26 Nov 1996 16:58:30 -0000
Organization: Coverform Ltd.
Lines: 49
Sender: brian@awfulhak.demon.co.uk
Message-ID: <57f7jm$45t@anorak.utell.net>
References: <57beq0$r4e@gemini.res.otaru-uc.ac.jp>
Reply-To: brian%anorak.coverform.lan@awfulhak.demon.co.uk
NNTP-Posting-Host: anorak.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8

In article <57beq0$r4e@gemini.res.otaru-uc.ac.jp>,
	k-sato@res.otaru-uc.ac.jp (Kou Sato) writes:
: 
:      Hi,  I'm running FreeBSD R2.0.5(on a DEC PC with 486DX2)
:  and R2.1.0(Pentium with Intel MB.)   Both are really stable
:  and they are the most comfortable programming environment for
:  me now.
: 
:     However, I have a few problems with "rlogin" and "rsh". 
:  
:         1. I can not rlogin from machine1 to machine2 nor
:            from machine2 to machine1.  rlogin claims that
:            "invalid user."  
:     
:              * I'm not running NIS nor NFS.
: 
:              * I have same account on both machines, but
:                their user ID are different.  
: 
:              * There is no problem with telnet nor ftp.
: 
:              * I think my '.rhost' or '/etc/hosts.equiv'
:                 has no problem.
: 
:        2.  'rcp foo.txt machine2:~/' on machine1 succeeds, but
:            'rcp foo.txt machine1:~/' on machine2 fails.
: 	   stty claims that 'TIOCGETD: Operation not supported.'
: 
:              * 'stty -e' gives same result on both machines.
: 
:     Could someone please tell me what causes problem?
:  I also appreciate the pointers to related manuals, documents,
:  RFCs and books.  Sorry for my poor English.

I never found the rcp/rsh manual pages to be very clear - it takes a bit
of figuring out.  Basically, /etc/hosts.equiv controls whether non-root
people are allowed to rsh/rcp(/rlogin with no password).  Any individual
(including root) may allow additional machines/users in their $HOME/.rhosts
file.  All these files must be at worst writable by the user in question
only, otherwise they're ignored.

So, I suspect that if you've got the necessary machines in hosts.equiv,
it's probably group or world writable (or your /etc directory is).

-- 
Brian <brian%anorak.coverform.lan@awfulhak.demon.co.uk>
      <http://www.awfulhak.demon.co.uk/>
Don't _EVER_ lose your sense of humour....
.