3
conf="/usr/local/sarg/sarg.conf"
4
squid_password_file="/usr/local/squid/etc/passwd"
5
tmp="/tmp/sarg_limit.$$"
7
limit_file=`grep "per_user_limit" $conf|grep -v "#"|awk '{print $2}'`
9
if [ "$limit_file" != "" ]; then
11
cat $limit_file|while read key; do
12
uline=`grep $key $squid_password_file`
13
grep -v $key $squid_password_file > $tmp
14
echo $uline|sed 's/:/:*/g' >> $tmp
15
cat $tmp > $squid_password_file