UnixWorld Online: Internet Security: Column No. 002: Listing

Listing 1: A /etc/hosts.equiv file that sets up trust for both violet and daisy.
% cat /etc/hosts.equiv
daisy
violet
% hostname
daisy
% rlogin violet
Last login: Fri Jun 9 07:30:02 from violet
SunOS 4.1.4 (VIOLET):  Fri Oct 14 11:06:12 PDT 1994
You have mail;
% hostname
violet
% []

Listing 2: You can disable the ``r'' servers by commenting out the corresponding entries in the /etc/inetd.conf file. In this example, they are already commented out.

# cat /etc/inetd.conf
 ...
#
# Shell, login, exec, comsat and talk are BSD protocols.
#
#shell  stream  tcp     nowait  root    /usr/etc/in.rshd    in.rshd
#login  stream  tcp     nowait  root    /usr/etc/in.rlogind in.rlogind
#exec   stream  tcp     nowait  root    /usr/etc/in.rexecd  in.rexecd
#
 ...
# ps -aux | grep inet
root       122  0.0  0.0   56    0 ?  IW   Jun  4  0:00 inetd
root       461  0.0  0.9   32  196 p2 S    11:42   0:00 grep inet
# kill -1 122
# []

Copyright © 1995 The McGraw-Hill Companies, Inc. All Rights Reserved.
Edited by Becca Thomas / Online Editor / UnixWorld Online / beccat@wcmh.com

[Go to Contents] [Search Editorial]

Last Modified: Tuesday, 22-Aug-95 15:56:29 PDT