Re: Starting squid automatically at boot as another user...

From: Tilman Schmidt <Tilman.Schmidt@dont-contact.us>
Date: Wed, 29 Sep 1999 10:11:51 +0200

At 09:46 29.09.99 +0200, Danny de Klark wrote:
>I want to start squid automatically when my system boots.
>Normally I start squid by hand by first doing: -su <normal user> ( not root
>)
>and then type /usr/local/squid/bin/squid.
>When I run squid as root it won't work, but that's normal.

If you set the cache_effective_user and cache_effective_group options
in squid.conf, you can start it as root and it will switch to that
user all by its own.

>If I want to start squid at boottime under another account as root, what
>line ( if neccessary at all ???? ) must I put in the startup-script to first
>switch to the other useraccount and after that start squid in a way that it
>runs normal ???.

If you don't want to use the squid.conf options, you can use:

su <normal user> -c /usr/local/squid/bin/squid

-- 
Tilman Schmidt          E-Mail: Tilman.Schmidt@sema.de (office)
Sema Group Koeln, Germany       tilman@schmidt.bn.uunet.de (private)
Received on Wed Sep 29 1999 - 02:27:42 MDT

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