Re: [squid-users] Logdir changes ownership

From: Jim George <[email protected]>
Date: 17 Feb 2002 12:14:56 +0000

Unfortunately it doesn't stay the same something is changing it. The
problem is that I have no idea how to go about finding out what changes
it.

Does anyone have any ideas?

Jim
On Sun, 2002-02-17 at 10:25, Dave Raven wrote:
> There should be no need; just run it once and it will
> remain the same.
>
> 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 12:19 PM
> Subject: Re: [squid-users] Logdir changes ownership
>
>
> > 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
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> >
> >
> >
>
Received on Sun Feb 17 2002 - 05:11:02 MST

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