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

⟦c6389ed33⟧ TextFile

    Length: 864 (0x360)
    Types: TextFile
    Names: »rhosts.pl«

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/checkacct/rhosts.pl« 

TextFile

#!/usr/unsup/bin/perl
'true' || eval 'exec perl -S $0 $argv:q';
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec /usr/local/bin/perl -S $0 $argv:q'
        if 0;

$me=$ENV{"USER"};
$end_code=0; 
$networkgrps="";
while (<>) {
	chop;
	@F = split(' ');
	if (/^[ \t]*\+@/) { 
		$networkgrps=$networkgrps . $F[0] . " ";
	}
	elsif ($#F > 0) {
		$machine=$F[0];
		shift(@F);
		while ( $#F > -1 ) {
			if ( $F[0] ne $me )  {
				$holes{$machine}=$holes{$machine} . $F[0] . " ";
			}
			shift(@F);
		}
     	}
}
if ( $networkgrps ne "" )  {
	printf "\nAll users in network group(s) (%s) can login to your account\n",$networkgrps;
	printf "without a password.\n";
	$end_code=1;
}
for ( keys %holes )  {
	printf "\nThese users at %s are allowed to login to your account\n",$_;
	printf "without a password: %s\n", $holes{$_};
	$end_code=1;
}
exit $end_code;