httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: listenwrap support
Date Mon, 19 Oct 1998 01:59:57 GMT


On Sun, 18 Oct 1998, Manoj Kasichainula wrote:

> How are you doing this so far? Do you already have a setuid logger
> hiding somewhere?

You mean like:

#!/usr/bin/perl
$#ARGV == 0 || die "usage: logger filename\n";
open(LOG, ">>$ARGV[0]") || die "$0: unable to open $ARGV[0] for writing: $!\n";
print LOG <STDIN>;

and then setuid it to a non-root user who is also not the same as the user
httpd runs as? 

You don't need logs written as root, you just need them written as
something that's not the samea s httpd. 

Dean


Mime
View raw message