DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T r

⟦a56930e2c⟧ TextFile

    Length: 558 (0x22e)
    Types: TextFile
    Names: »rhosts_sweeper«

Derivation

└─⟦4f9d7c866⟧ Bits:30007245 EUUGD6: Sikkerheds distributionen
    └─⟦3da311d67⟧ »./cops/1.04/cops_104.tar.Z« 
        └─⟦6a2577110⟧ 
└─⟦4f9d7c866⟧ Bits:30007245 EUUGD6: Sikkerheds distributionen
    └─⟦6a2577110⟧ »./cops/1.04/cops_104.tar« 
            └─⟦this⟧ »cops_104/extra_src/rhosts_sweeper« 

TextFile

#!/bin/sh
#
#  This just searches for rhosts with a + in them... needs to be run
# as root to be effective (to access each user's rhosts file; run on
# your NFS server if applicable), but might be plugged into the rest of
# cops if you run things as root normally...

(ypcat passwd; cat /etc/passwd) | awk -F: '{print $1, $(NF-1)}' |
while read user dir ; do
	target="$dir/.rhosts"
	if test -s "$target" ; then
		grep "+" "$target" > /dev/null
		if test "$?" = "0" ; then
			echo "Warning!  A plus ("+") was found in $user's .rhosts file!"
			fi
		fi
	done