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

From: Odhiambo WASHINGTON <odhiambo.raburu@dont-contact.us>
Date: Thu, 7 Sep 2006 15:27:03 +0300

* 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

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <wash@wananchi.com>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+
Line Printer paper is strongest at the perforations.
Received on Thu Sep 07 2006 - 06:27:35 MDT

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