[Comm] su squid ÒÕÇÁÅÔÓÑ

Vitaly Gorshkov =?iso-8859-1?q?vita55555_=CE=C1_mail=2Eru?=
óÒ íÁÊ 3 10:25:31 MSD 2006


> ûÅÌÌ ÅÝ£ ÕËÁÚÁÔØ (-s, Õ ÓË×ÉÄÁ ÛÅÌÌ ×ÒÏÄÅ /d/null)? âÏÌØÛÅ ÞÅÇÏ-ÔÏ ÄÁÖÅ
> × ÇÏÌÏ×Õ ÎÉÞÅÇÏ ÎÅ ÐÒÉÈÏÄÉÔ.
>
> ÷ÏÔ ÔÁË Õ ÍÅÎÑ ÄÁ×ÎÏ ÒÁÂÏÔÁÅÔ:
> /usr/bin/nice -n 19 su - -s /bin/sh -c "/usr/bin/sarg -d $TODAY" squid #>/dev/null 2>&1
>
>   
------------------------
#!/bin/sh
su - -s /dev/null -c "echo \"http://sex.ru 127.0.0.1/- - GET\" |
/usr/local/rejik3/redirector /usr/local/rejik3/redirector
.conf;" squid

./check-redirector#
su: setting shell: Permission denied
------------------------

#!/bin/sh
su - -s /bin/sh -c "echo \"http://sex.ru 127.0.0.1/- - GET\" |
/usr/local/rejik3/redirector /usr/local/rejik3/redirector.c
onf;" squid

./check-redirector#
http://192.168.0.195/ban/porno.html 127.0.0.1/- - GET

ÏÓÔÁ×ÉÌ ÔÁË.
squid É rejik ÚÁÒÁÂÏÔÁÌÉ.







ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ community