Hi,
On latest HP Tru64 it seems that squid -k doesn't work.
This is what happens with a squid -X -k reconfigure started by root:
2005/06/27 20:43:28| getMyHostname: 'hal9000.acmeconsulting.loc' 
resolved into 'hal9000.ac
meconsulting.loc'
2005/06/27 20:43:28| leave_suid: PID 1257 called
2005/06/27 20:43:28| leave_suid: PID 1257 giving up root, becoming 'squid'
2005/06/27 20:43:28| leave_suid: PID 1257 giving up root priveleges forever
squid: ERROR: Could not send signal 1 to process 1249: (1) Not owner
but kill -1 1249 works fine.
Squid runs as nobody user, same result with a generic dedicated 'squid' user.
root           3813          1  0.0 21:06:07 ??           0:00.06 
/usr/local/squid/sbin/squid
nobody         3815       3813  0.0 21:06:07 ??           0:01.25 (squid)
nobody         3816       3815  0.0 21:06:07 ??           0:00.16 (wb_ntlmauth)
nobody         3817       3815  0.0 21:06:07 ??           0:00.15 (wb_ntlmauth)
nobody         3818       3815  0.0 21:06:07 ??           0:00.15 (wb_ntlmauth)
nobody         3819       3815  0.0 21:06:07 ??           0:00.15 (wb_ntlmauth)
nobody         3820       3815  0.0 21:06:08 ??           0:00.15 (wb_ntlmauth)
nobody         3821       3815  0.0 21:06:08 ??           0:00.06 (unlinkd)
nobody         3822       3815  0.0 21:06:09 ??           0:00.14 (pinger)
Removing the no_suid() call, it seems work:
Index: main.c
===================================================================
RCS file: /squid/squid/src/main.c,v
retrieving revision 1.345.2.26
diff -u -p -r1.345.2.26 main.c
--- main.c      13 Jun 2005 22:26:22 -0000      1.345.2.26
+++ main.c      27 Jun 2005 18:56:00 -0000
@@ -686,7 +686,7 @@ main(int argc, char **argv)
         if (Config.chroot_dir && chroot(Config.chroot_dir)) {
             fatal("failed to chroot");
         }
-       no_suid();
+/*     no_suid();*/
         sendSignal();
         /* NOTREACHED */
      }
Any suggestion ?
Regards
Guido
-
========================================================
Guido Serassio
Acme Consulting S.r.l. - Microsoft Certified Partner
Via Lucia Savarino, 1           10098 - Rivoli (TO) - ITALY
Tel. : +39.011.9530135  Fax. : +39.011.9781115
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Mon Jun 27 2005 - 13:09:05 MDT
This archive was generated by hypermail pre-2.1.9 : Thu Jun 30 2005 - 12:00:05 MDT