Re: [squid-users] Urgent Help with starting Squid

From: Joe Cooper <[email protected]>
Date: Sun, 13 Jan 2002 04:58:04 -0600

Couple of hints:

There is no need to start Squid manually. Add it to your startup
scripts and forget about it (rc.local, or use initscripts if your system
supports them). Startup scripts as run as the root user.

When Squid starts up, it starts as the user that executed it. Then it
changes itself to run as the user selected in the configuration file.
Generally, only a root started process can become a different user...so
your Admin user doesn't have permission to start a process that turns
into a squid-owned process. This is a security mechanism (what if the
squid user had more or different priviledges or permissions than your
Admin user).

If you must start Squid manually for some reason (and can't su to root
for those administrative tasks), you can also use sudo to grant root
permissions for some specialized taskes.

Greg Darby wrote:

> Hi,
>
> As new to Linux i am still having a bit of trouble with Squid.
>
> If i log on as root Squid works fine. If i log on as Admin (I created this)
> Squid will not run at all. In the squid.conf file i have Squid set to look
> at "squid" for the id and group, not the default "nobody".
>
> In the Linux shell i have done the following, as per instructions given.
>
> chown -R squid.squid /usr/local/squid
> chmod g+s /usr/local/squid /usr/local/squid/src
>
> I had already created the User and Group called "squid" prior to the above.
> I have added the group "squid" to the Admin User.
>
> Can anyone help? I am new at Linux and get the impression that it's best not
> to run the box at "root" level day to day.
>
> Regards,
>
> Greg

-- 
Joe Cooper <joe@swelltech.com>
http://www.swelltech.com
Web Caching Appliances and Support
Received on Sun Jan 13 2002 - 03:57:10 MST

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