Re: [squid-users] Logdir changes ownership

From: Squid Support (Henrik Nordstrom) <hno@dont-contact.us>
Date: Sun, 17 Feb 2002 11:53:45 +0100

You should try to find out what it is that changes it back to "root".
It for sure is not Squid.

Regards
Henrik

On Sunday 17 February 2002 11.19, Jim George wrote:
> Thanks Dave,
>
> I've put that in the startup script just above the execution of
> squid.
>
> Jim
>
> On Sun, 2002-02-17 at 09:25, Dave Raven wrote:
> > yes.
> > chown -R -v nobody.nobody /var/squid/logs
> > chmod -R -v 660 /var/squid/logs
> >
> > That should fix your problem.
> >
> > Dave Raven.
> > OpteqSec.
> >
> > ----- Original Message -----
> > From: "Jim George" <jim.george@blueyonder.co.uk>
> > To: "Dave Raven" <dave@reason.za.org>
> > Cc: "Squid Proxy" <squid-users@squid-cache.org>
> > Sent: Sunday, February 17, 2002 11:08 AM
> > Subject: Re: [squid-users] Logdir changes ownership
> >
> > > Dave,
> > >
> > > this is how I start squid at startup.
> > >
> > > /usr/local/squid/bin/squid -s
> > >
> > > This is the error output in /var/log/messages
> > > Feb 9 08:15:19 linux squid[2320]: Cannot open
> >
> > '/var/squid/logs/access.log' for writing. ^IThe parent directory
> > must be writeable by the ^Iuser 'nobody', which is the
> > cache_effective_user ^Iset in squid.conf.
> >
> > > I hope this helps
> > >
> > > Jim
> > >
> > > On Sat, 2002-02-16 at 16:09, Dave Raven wrote:
> > > > Can you not email us the actuall error you get,
> > > > aswell as how you start squid at bootup; and how you normally
> > > > would?
> > > >
> > > > thanks,
> > > > Dave Raven.
> > > > OpteqSec.
> > > >
> > > > ----- Original Message -----
> > > > From: "Jim George" <jim.george@blueyonder.co.uk>
> > > > To: "Squid Proxy" <squid-users@squid-cache.org>
> > > > Sent: Saturday, February 16, 2002 3:21 PM
> > > > Subject: Re: [squid-users] Logdir changes ownership
> > > >
> > > > > Dave,
> > > > >
> > > > > I selected to have it run as nobody when I installed it.
> > > > >
> > > > > Also doing chown is what I've had to put in the startup
> > > > > script I now use to start squid.
> > > > >
> > > > > Have you any other suggestions?
> > > > >
> > > > > Jim
> > > > >
> > > > > On Sat, 2002-02-16 at 12:02, Dave Raven wrote:
> > > > > > I suspect you have set squid to run as user nobody.nobody
> > > > > > and it
> >
> > checks
> >
> > > > > > the rights on the log dir's before dropping privilages.
> > > > > >
> > > > > > try chown -R -v nobody.nobody /logdirectory
> > > > > >
> > > > > > Dave Raven.
> > > > > > OpteqSec.
> > > > > >
> > > > > > ----- Original Message -----
> > > > > > From: "Jim George" <jim.george@blueyonder.co.uk>
> > > > > > To: "Squid Proxy" <squid-users@squid-cache.org>
> > > > > > Sent: Saturday, February 16, 2002 2:04 PM
> > > > > > Subject: [squid-users] Logdir changes ownership
> > > > > >
> > > > > > > I'm sure this will prove to be really stoopid
> > > > > > > but.....When I start
> > > >
> > > > squid
> > > >
> > > > > > > on boot up, obviously it starts under user root,
> > > > > > > however it then
> >
> > exits
> >
> > > > > > > because it wants the loggind directories to be owned by
> > > >
> > > > nobody.nogroup.
> > > >
> > > > > > > What do I need to do to retain ownership as
> > > > > > > nobody.nogroup 'cause
> > > >
> > > > there
> > > >
> > > > > > > is obviously something screwy going on?
> > > > > > >
> > > > > > > Jim

-- 
MARA Systems AB, Giving you basic free Squid support
Customized solutions, packaged solutions and priority support
available on request
Received on Sun Feb 17 2002 - 03:54:40 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:06:24 MST