[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tips: tcp wrapper and rlogin/.rhosts



 
    
[root@igloo /etc]# cat /etc/hosts.allow 
#
# hosts.allow   This file describes the names of the hosts which are
#               allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#

in.telnetd: igloo.its.unimacq.edu.au, guru.its.unimacq.edu.au
in.rlogind: igloo.its.unimacq.edu.au, guru.its.unimacq.edu.au


[root@igloo /etc]# cat /etc/hosts.deny  
#
# hosts.deny    This file describes the names of the hosts which are
#               *not* allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular
# you should know that NFS uses portmap!

in.telnetd: ALL
in.rlogind: ALL


[terrence@igloo terrence]$ cat .rhosts
guru.its.unimacq.edu.au     terrence
igloo.its.unimacq.edu.au    terrence


[terrence@igloo terrence]$ ls -al .rhosts
-rw-------   1 terrence terrence       74 Nov 30 11:00 .rhosts

Group and Others can NOT have write permission.

Google