tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Jonathan Williams <jonathw@shubertorg.com>
Subject: SUMMARY:  disabling r* commands
Date: Thu, 26 Sep 2002 17:25:37 -0400	[thread overview]
Message-ID: <01f601c265a3$41c3f0b0$8315000a@shubertorg.com> (raw)
In-Reply-To: Pine.LNX.4.44.0209261346510.19262-100000@heimdal.compchem.ucsf.edu

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




      reply	other threads:[~2002-09-26 21:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-26 20:56 Fatal Error: Cannot map library James W. Caldwell
2002-09-26 21:25 ` Jonathan Williams [this message]
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