use strict; use warnings; use LWP; use HTTP::Daemon;
# the parameters are # the user/group user to restrict permissions, the port (default 80) # the local addres (default locahost) # respectivaly my ($userg, $port, $laddres) = @ARGV; $userg or die 'You need to suply a nonroot user/group as first parameter'; my ($user, $group) = split ('/', $userg);