<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div>Befor all, thanks so so much for the answears!!!<br></div><div>It's exist, I'm sure.<br></div>This is my chroot structre:<br></div><span style="color:rgb(255,0,0)">/ (linux root)<br></span></div><span style="color:rgb(255,0,0)">/etc<br></span></div><span style="color:rgb(255,0,0)">     squid-3.5.6/<br></span></div><span style="color:rgb(255,0,0)">                      bin/<br></span></div><span style="color:rgb(255,0,0)">                           purge<br></span></div><span style="color:rgb(255,0,0)">                           squidclient<br></span></div><span style="color:rgb(255,0,0)">                      cache/<br></span></div><div><span style="color:rgb(255,0,0)">                           (squid cache dirs generated by squid -z)<br></span></div><span style="color:rgb(255,0,0)">                      etc/<br></span></div><span style="color:rgb(255,0,0)">                            cachemgr.conf<br></span></div><span style="color:rgb(255,0,0)">                            errorpage.css<br></span></div><span style="color:rgb(255,0,0)">                            group<br></span></div><span style="color:rgb(255,0,0)">                            gshadow<br></span></div><span style="color:rgb(255,0,0)">                            hosts<br></span></div><span style="color:rgb(255,0,0)">                            localtime<br></span></div><span style="color:rgb(255,0,0)">                            mime.conf<br></span></div><span style="color:rgb(255,0,0)">                            nsswitch.conf<br></span></div><span style="color:rgb(255,0,0)">                            passwd<br></span></div><span style="color:rgb(255,0,0)">                            resolv.conf<br></span></div><span style="color:rgb(255,0,0)">                            shadow<br></span></div><span style="color:rgb(255,0,0)">                            squid.conf<br></span></div><span style="color:rgb(255,0,0)">                       lib64/<br></span></div><span style="color:rgb(255,0,0)">                             (a lot of libs here, discovered with ldd command)<br></span></div><span style="color:rgb(255,0,0)">                       libexec/<br></span></div><span style="color:rgb(255,0,0)">                             basic_ncsa_auth<br></span></div><span style="color:rgb(255,0,0)">                             diskd<br></span></div><span style="color:rgb(255,0,0)">                             (other default squid libs)<br></span></div><span style="color:rgb(255,0,0)">                       regras/<br></span></div><span style="color:rgb(255,0,0)">                             (my acl files rules)<br></span></div><span style="color:rgb(255,0,0)">                       sbin/<br></span></div><span style="color:rgb(255,0,0)">                             squid<br></span></div><span style="color:rgb(255,0,0)">                       share/<br></span></div><span style="color:rgb(255,0,0)">                               errors/<br></span></div><span style="color:rgb(255,0,0)">                                       (default dir squid errors)<br></span></div><span style="color:rgb(255,0,0)">                               icons/<br></span></div><span style="color:rgb(255,0,0)">                                       (default squid icons<br></span></div><span style="color:rgb(255,0,0)">                               man/<br></span></div><span style="color:rgb(255,0,0)">                                       (default man squid pages)<br></span></div><span style="color:rgb(255,0,0)">                       usr/<br></span></div><span style="color:rgb(255,0,0)">                              lib64/<br>                                       (a lot of libs here, discovered with ldd command)<br></span></div><span style="color:rgb(255,0,0)">                       var/<br></span></div><span style="color:rgb(255,0,0)">                              logs/<br></span></div><span style="color:rgb(255,0,0)">                                       (default squid logs)<br></span></div><span style="color:rgb(255,0,0)">                              run/<br></span></div><span style="color:rgb(255,0,0)">                                    squid.pid</span><br><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><div><br></div><div>I did the command:<br></div><div>chroot /etc/squid-3.5.6 /libexec/basic_ncsa_auth<br></div><div>It runs, that's why I'm sure the chroot environment, unless for the ncsa_auth, is correct<br><br></div><div>Any more suggestions?<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-23 11:42 GMT-03:00 Amos Jeffries <span dir="ltr"><<a href="mailto:squid3@treenet.co.nz" target="_blank">squid3@treenet.co.nz</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 23/07/2015 11:23 p.m., Jorgeley Junior wrote:<br>
>> Hi guys.<br>
>> I have a RedHat 6.6 + squid 3.5.6 + basic_ncsa_auth + chroot and is<br>
>> crashing only when I do an authentication.<br>
>><br>
>> Here is the main confs:<br>
>> auth_param basic program /libexec/basic_ncsa_auth /regras/usuarios<br>
>> auth_param basic children 10 startup=0 idle=1<br>
>> auth_param basic realm INTERNET-LOGIN NECESSARIO<br>
>> ... (other confs) ...<br>
>> acl usuarios            proxy_auth -i   "/etc/squid-3.5.6/regras/usuarios"<br>
>> ... (other confs) ...<br>
>> chroot /etc/squid-3.5.6<br>
>><br>
>> Here is what I find in the cache.log:<br>
>> 2015/07/22 18:47:27.866 kid1| WARNING: no_suid: setuid(0): (1) Operation<br>
>> not permitted<br>
>> 2015/07/22 18:48:01.735 kid1| ipcCreate: /libexec/basic_ncsa_auth: (2) No<br>
>> such file or directory<br>
>> 2015/07/22 18:47:27.866 kid1| WARNING: basicauthenticator #Hlpr13818 exited<br>
>><br>
>> What is the ipcCreate and why he is not findind the file?<br>
<br>
</span>It is the code that runs the helper.<br>
<br>
The "/libexec/basic_ncsa_auth" does not exist as an exectuable binary<br>
inside your chroot.<br>
<span class=""><br>
<br>
>><br>
> About the libs needed when I do the chroot, I have to copy them to the<br>
> squid folder or I need to create the same structure like<br>
> /squid-3.5.6/libs,  /squid-3.5.6/lib64?<br>
<br>
</span>They must match the OS layout where Squid (and everything else that will<br>
run in the chroot) expects to find them.<br>
<br>
Amos<br>
<br>
_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div style="text-align:left"><font size="4"><b><u><br></u></b></font></div><div style="text-align:left"><font size="4"><b><u><img src="https://lh6.googleusercontent.com/-xODPvbH2piQ/T6RqD0dqXjI/AAAAAAAAAPk/0I8Y3aq0mYM/h120/linuxano+assinatura+e-mail.png"><br></u></b></font></div></div>
</div>