[squid-users] Re: Squid permission on log files

From: <bishal@dont-contact.us>
Date: 7 Sep 2006 14:40:38 -0000

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@wananchi.com> 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
>
Received on Thu Sep 07 2006 - 08:40:54 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:03 MDT