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

[cobalt-users] webalizer part 2



Ok, from the webalizer.pl file, how to i change the chown part to the user
nobody?

I currently have

I checked in group and i found

nobody:x:99:

  chown 0, 0, $thepath;

I think this is right, but i changed it soo many times, i dont know. So if
some is kind enough to send me their webalizer.pl file (with the changes to
user nobody already done) that would solve all my problems :)


-----------------

 if (-l "$asite")
  {
    $thepath = "$prefix/$asite/web/stats";
    # Create a directory /web/stats if it isn't there yet
    mkdir $thepath, 775  unless (-d $thepath);
    chown 0, 0, $thepath;
    chmod 0777, $thepath;
    $messages .=
       `webalizer -n $asite -q -T -o $thepath $prefix/$asite/logs/web.log`;
  }
}



_________________________________________________________________
Gary Peltola
gary@xxxxxxxxxxxxxxx
Web Hosting Network
http://www-hosting.net
_________________________________________________________________