Re: acl file permissions

From: Simon Bryan <sbryan@dont-contact.us>
Date: Fri, 30 Jul 1999 13:09:01 +1000

Thanks for that, yes that makes sense, now as soon as I can get a quiet
time I will try a reconfigure again, now I have set the file permissions so that
the 'child' should be able to read them.

> Simon Bryan writes:
> > I still have problems when restarting Squid with a reconfigure command, the
> > problem may be related to the following messages in my Messages File (first
> > time I have actually seen them, but that doesn't mean they weren't there!)
> >
> > The files it can't find do exist as do a couple of others that it has not had
> > trouble with. They do (did) have different permissions. The files it found have
> > rwxr.xr.x
> > while these two just have
> > rwx......
> >
> > However if I shut Squid right down and restart, it starts up without error, I can
> > and will change the permissions, but if this is the cause why does it work
> > from restart but not a reconfigure?
>
> I've seen a couple oddities also, of things that do not behave the
> same on a startup vs. a reconfigure. One of them I suspect might have
> had to do with using a partially qualified path to the config file on
> the command line (I.e. "squid -f ./etc/squid.conf".) This one sounds
> like it might have to do with the effective user or group ID Squid is
> running under.
>
> Have you made sure that the user and group for the config files
> (including the acl files you are trying to load) are the same as those
> given for the effective uid and group for Squid in squid.conf?
>
> I think when you start squid as root, it does more of the work *as*
> root, before changing its uid/gid to the euid/gid it's told to - which
> is logical, since it has to read the conf file before it knows what it
> should change to - but if you signal the child to reconfigure, it has
> to do everything as its effective (non-root) user. That could cause
> the problem you describe, depending on file ownership.
>
> -- Clifton
>
> --
> Clifton Royston -- LavaNet Systems Architect -- cliftonr@lava.net
> "An absolute monarch would be absolutely wise and good.
> But no man is strong enough to have no interest.
> Therefore the best king would be Pure Chance.
> It is Pure Chance that rules the Universe;
> therefore, and only therefore, life is good." - AC
>

--
Simon Bryan                    sbryan@olmc.nsw.edu.au
Information Technology Manager sbryan@mpx.com.au
OLMC Parramatta
Received on Thu Jul 29 1999 - 21:02:42 MDT

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