Restart squidu z webu
Jozef Drahovsky
FreeBSDcz at jozef.drahovsky.sk
Tue May 1 18:23:49 CEST 2007
Juraj Lutter wrote / napísal(a):
> Pouzi ``sudo'' alebo ``op''. Navyse podla semantiky suid/sgid bitov, sa
> suid na skriptoch ignoruje.
>
> otis
>
Uz mi to funguje:
../etc/sudores
www ALL= (ALL) NOPASSWD: /usr/local/sbin/squid
<? php
print "<BR>Reconfigure squid\n";
$command="/usr/local/bin/sudo /usr/local/sbin/squid -k reconfigure 2>&1";
$squid = popen($command, 'r');
while(!feof($squid))
{ $buf = fgets($squid);
if ($buf != "") { print "<BR>squid: $buf\n"; }
}
pclose($squid);
?>
More information about the Users-l
mailing list