Thanks Actually my problem is when I rotate the log file I couldnot view the access.log file with tail command. gives permission denied. Thanks On 9/7/2006, "Odhiambo WASHINGTON" <odhiambo.raburu@xxxxxxxxxxxx> wrote: >* On 07/09/06 17:08 +0545, Bisal wrote: >| Thanks for your quicker replies. >| >| Actually there is nothing except "squid -k rotate" lines >| inside that script. Below is my script line >| >| >| #!/bin/sh >| >| squid -k rotate >| >| chmod 644 /var/log/squid/access.log >| >| --------------------------------------- >| >| By writing the line in /etc/newsyslog.conf file, there is a problem, I >| have to sighup the squid process manually. Any other tips so that log >| files will be rotated automatically without changing the read permission >| for the file? > >Since Squid's log files are by default owned by squid:squid, just edit >/etc/groups and add your userid to the group squid, which definately has >read access to the logfiles. >This is based on the assumption that your intention is NOT to let the >whole world have read access to those files. > >Actually, what problem were you trying to address? ;) > > >-Wash > >http://www.netmeister.org/news/learn2quote.html > >DISCLAIMER: See http://www.wananchi.com/bms/terms.php >