On Fri, 6 Dec 2024 13:01:37 -0500
Jeffrey Walton <noloa...@gmail.com> wrote:

> >
> > Squid has a service account: "proxy" and group "proxy".  
> 
> That may be an issue. Years ago I had MySQL failures because MySQL
> startup scripts checked UID and GID were mysql. Trying to start the
> server as root led to failures. You may be experiencing something
> similar. You might try `su proxy` to run as the squid user.

Not necessarily. Looking at the service file for squid shows, inter
alia:

[Service]
Type=notify
PIDFile=/run/squid.pid
Group=proxy
RuntimeDirectory=squid
RuntimeDirectoryMode=0775
ExecStartPre=/usr/sbin/squid --foreground -z
ExecStart=/usr/sbin/squid --foreground -sYC
ExecReload=/bin/kill -HUP $MAINPID
KillMode=mixed
NotifyAccess=all

That suggests tha you want to run as user root, group squid. Indeed:

root@issola:~# ps aux | grep -i squid
root        2217  0.0  0.2  66372 17516 ?        Ss   Nov26   0:00 
/usr/sbin/squid --foreground -sYC
proxy       2220  0.0  0.2  71824 23064 ?        S    Nov26   1:53 (squid-1) 
--kid squid-1 --foreground -sYC
proxy       2244  0.0  0.0   5644  1168 ?        S    Nov26   0:00 
(logfile-daemon) /var/log/squid/access.log
root      285132  0.0  0.0   6332  2120 pts/1    S+   11:46   0:00 grep 
--colour=auto -i squid
root@issola:~# 




-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/

Reply via email to