From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jonathan Williams Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: disabling r* commands Date: Thu, 26 Sep 2002 17:25:37 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <01f601c265a3$41c3f0b0$8315000a@shubertorg.com> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1033075590 19750 127.0.0.1 (26 Sep 2002 21:26:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 26 Sep 2002 21:26:30 +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 17ug9V-00058Q-00 for ; Thu, 26 Sep 2002 23:26:29 +0200 Original-Received: (qmail 3282 invoked by uid 5); 26 Sep 2002 21:26:25 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 3273 invoked by uid 49493); 26 Sep 2002 21:26:25 -0000 Original-Received: from jonathw@shubertorg.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.24. spamassassin: 2.50-cvs. Clear:SA:0(-1.0/5.0):. Processed in 0.656308 secs); 26 Sep 2002 21:26:25 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 26 Sep 2002 21:26:25 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H32003U4E80A2@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 26 Sep 2002 17:26:24 -0400 (EDT) Original-Received: from mailhost.Shubertorg.com ([207.246.208.40]) by emroute3.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H320031AE7S2N@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 26 Sep 2002 17:26:17 -0400 (EDT) Original-Received: from memnoch [207.238.217.205] by mailhost.Shubertorg.com (SMTPD32-7.12) id AE36248014A; Thu, 26 Sep 2002 17:37:58 -0400 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Priority: 3 X-MSMail-priority: Normal Xref: main.gmane.org gmane.os.tru64.managers:1878 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:1878 Well...where do I begin? first of all...if you do want to disable the r* commands, you would comment out the lines in the /etc/inetd.conf file like I said in my original message. This will block remote systems from gaining access to the local system through these commands. To disable the rlogin, etc commands from running locally...you would simply change the permissions on the files (chmod 0700 /usr/bin/rlogin for example). The funny thing is this: I didn't actually need to disable these commands. I wanted them disabled because I had installed Ssh--and wanted people to use that instead of the old r* commands. Little did I realize that this Ssh thing took control of these programs and actually starts an ssh session when these programs are called. Very clever. It took some time to figure out why after disabling everything...I could STILL rlogin to this system. thanks go out to Arrigo Triulzi, Simon Millard, Mahendra Rajah and Ann Majeske. Oh, and if anyone is interested...the version of Ssh I'm using, Ann Majeske pointed out to me. It is for Tru64 5.1a or higher. Here is the link: http://www.tru64unix.compaq.com/internet/download.htm#security Jonathan Williams Unix Systems Administrator The Shubert Organization, Inc. -----Original Message----- Hi. I'm trying to disable the r commands (rlogin, rsh, rexec) on our Tru64 5.1 and 5.1a systems. I'm only doing testing with a 5.1a system. I searched around and read that all I would need to do in order to disable these services is comment out the appropriate lines in the /etc/inetd.conf file. So I commented out these three lines: shell stream tcp nowait root /usr/sbin/rshd rshd login stream tcp nowait root /usr/sbin/rlogind rlogind exec stream tcp nowait root /usr/sbin/rexecd rexecd I restarted the inetd service...and then even rebooted the machine. But I'm still able to use these commands successfully. Is what I read incorrect? Is there a better way to disable these commands (or better yet...is there a way to disable these commands?) I searched on the mailing list archives, and found a bunch of people asking this same question, but I could not find the summaries of these topics. Any help would be greatly appreciated. TIA