Re: squid becoming root

From: Patrick Mau <patrick@dont-contact.us>
Date: Mon, 28 Jun 1999 21:28:39 +0200

On Mon, Jun 28, 1999 at 07:35:36PM +0300, Hossam El-Ashkar wrote:
> Hello,
> I have noticed that some files in the swap directory is owned by root.
> Squid can't access these files and the cache.log is full of access denied. I
> turned the debug mode on, and I found that sometimes squid tries to switch
> user to root, but it says it fails and give up. This happens while I am
> looking. But I find those root owned files in the end.
> Why does squid needs to switch to root?? And how does he create files in
> the swap directory owned by root???

Hello all,

I just want to let you know that I have seen this, too.
It's hard to reproduce, but it happens quite frequently during heavy load.

My approach to solve this:

- shut down squid at 5 AM in the morning.
- run a cron job as root to change ownership and permissions.
- copy log files, restart squid.

My system:

Sun Ultra 1 Workstation
Solaris 2.5.1 with recommended patches
256MB RAM
16Gbyte squid cache
 4Gbyte disk for system, log files ....

May I ask another question:
Since I 'upgraded' the machine with all recommended patches,
'netstat -a' shows a very lot of *client* connections in TIME_WAIT
FIN2_WAIT, etc. How can I solve this.

Oh, the machine also has its own local dns server if that matters.

thanks,
Patrick
Received on Mon Jun 28 1999 - 13:23:17 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:47:02 MST