From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Markus Waldorf Newsgroups: gmane.os.tru64.managers Subject: SUMMARY:cannot get rsh or .rhosts to work Date: Tue, 14 Jan 2003 03:48:30 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042512464 18001 80.91.224.249 (14 Jan 2003 02:47:44 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2003 02:47:44 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18YH78-0004g3-00 for ; Tue, 14 Jan 2003 03:47:42 +0100 Original-Received: (qmail 4442 invoked by uid 5); 14 Jan 2003 02:48:49 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 4433 invoked by uid 49493); 14 Jan 2003 02:48:49 -0000 Original-Received: from waldorfm@rferl.org by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-2.0/5.0):. Processed in 0.401507 secs); 14 Jan 2003 02:48:49 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 14 Jan 2003 02:48:49 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H8O00B7WNTCP7@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 13 Jan 2003 21:48:49 -0500 (EST) Original-Received: from rferl.org (praguegate.rferl.org [194.228.91.19]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H8O00C5RNSZMT@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Mon, 13 Jan 2003 21:48:36 -0500 (EST) Original-Received: from prglnmail01.ad.rferl.org (172.16.42.41) by rferl.org with ESMTP (Eudora Internet Mail Server 3.0.3) for ; Tue, 14 Jan 2003 03:48:35 +0100 Original-Received: from [172.16.8.25] ([172.16.8.25]) by prglnmail01.ad.rferl.org (Lotus Domino Release 5.0.11) with ESMTP id 2003011403483242:35040 ; Tue, 14 Jan 2003 03:48:32 +0100 Original-To: "Tru64-Unix-Managers \(E-mail\)" X-MIMETrack: Itemize by SMTP Server on PRGLNMail01/CZ/RFERL(Release 5.0.11 |July 24, 2002) at 01/14/2003 03:48:32 AM, Serialize by Router on PRGLNMail01/CZ/RFERL(Release 5.0.11 |July 24, 2002) at 01/14/2003 03:48:33 AM, Serialize complete at 01/14/2003 03:48:33 AM User-Agent: Microsoft-Entourage/10.1.0.2006 Xref: main.gmane.org gmane.os.tru64.managers:2956 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2956 Sorry the problem was indeed silly. It was just simply a matter of using the right command syntax. Although I read the man page dozens of times I did not notice it. So the correct syntax is : #rsh -l waldorfm photon03.rferl.org ls The problem was noticed by a technician from HP who was here tonight to replace a PCI bus in one of our servers. Original message: Hello, I'm having strange problems trying to setup .rhosts. I somehow got it working in the past, but it only worked if .rhosts had the owner of the user's account, not if it was root, as lined out in the man page for rhosts. But now I cannot make it to work at all. It must be something stupid. What could be wrong please? root@photon03>ls -l | grep .rhosts -rw------- 1 waldorfm user 84 Jan 13 14:44 .rhosts root@photon03> This seems to be correct according to the .rhosts man page. The onwer of the .rhosts file is the account owner - I also tried chown root .rhosts, with the same effect. The permission is set correctly to 600. The .rhosts file in the home directory of user waldorfm reads: root@photon03>cat .rhosts photon03.rferl.org root photon03.rferl.org waldorfm photon03 root photon03 waldorfm root@photon03> Still rsh gives a permission error: root@photon03>rsh photon03.rferl.org waldorfm ls Permission denied. root@photon03> /etc/hosts shows: 127.0.0.1 localhost 172.16.44.44 photon03.rferl.org photon03 192.168.20.244 dnserver1.rferl.org dnserver1 #DNS nameserver Best regards Markus Waldorf RFE/RL, Inc.