<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Sat, Dec 12, 2015 at 5:39 AM, juancho Alfonso <span dir="ltr"><<a href="mailto:juanchorevolution@hotmail.com" target="_blank">juanchorevolution@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div><div dir="ltr"><p align="center"><br></p><div>
<div dir="ltr"><div><div dir="ltr"><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">the user is</font><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">squid</font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">if i initialite by defaul it works</font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">in var/spool/squid</font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">and works </font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">user squid squid</font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">but i want add dir </font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">var/spool/squid</font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">or </font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">XDISKEXTERNAL/something/squid</font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4"><br></font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">but dont work </font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">permission denied(13)</font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4"><br></font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4"><br></font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">try chmod -R squid.squid cache</font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">or</font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">chmod -R 777 cache</font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4"><br></font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4"><br></font></div><div><font style="font-size:16pt" face="Franklin Gothic Medium,sans-serif" color="#000000" size="4">image show config </font></div><div><a href="http://es.zimagez.com/zimage/captura398.php" target="_blank">http://es.zimagez.com/zimage/captura398.php</a></div><div><br></div><div><font face="Franklin Gothic Medium, sans-serif"><span style="font-size:21.3333px"><br></span></font></div><div><br><div><hr>To: <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>From: <a href="mailto:yvoinov@gmail.com" target="_blank">yvoinov@gmail.com</a><br>Date: Fri, 11 Dec 2015 02:38:56 +0600<br>Subject: Re: [squid-users] help change cache dir<br><br>
<br>
-----BEGIN PGP SIGNED MESSAGE----- <br>
Hash: SHA256 <br>
<br>
Cache dir owner must be user which is specified in squid.conf:<br>
<br>
<a href="http://i.imgur.com/AbYkE8M.png" target="_blank">http://i.imgur.com/AbYkE8M.png</a><br>
<br>
<br>
<br>
11.12.15 2:27, juancho Alfonso пишет:<br>
<span style="white-space:pre-wrap">> Hey thereI have installed
CentOS squid in 7I want to change the cache directory<br>
> appears when I try to initialize<br>
> Creating Swap Directories<br>
> FATAL: Failed to make directory swap mydirectory / cache /
00:<br>
> (13) Permission denied<br>
> directory is an external drive or a folder on the same
partitionand I granted permissions<br>
> chmod 777 cacheorchmod cache squid.squid<br>
> no worksI need help to put more capacity more directories<br>
><br>
><br>
><br>
> the squid.conf<br>
> ## Recommended minimum configuration:#<br>
> # Example rule allowing access from your local networks.#
Adapt to list your (internal) IP networks from where browsing#
should be allowedacl localnet src <a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a> # RFC1918 possible
internal networkacl localnet src <a href="http://172.16.0.0/12" target="_blank">172.16.0.0/12</a> # RFC1918 possible
internal networkacl localnet src <a href="http://192.168.0.0/16" target="_blank">192.168.0.0/16</a> # RFC1918 possible
internal networkacl localnet src fc00::/7 # RFC 4193 local private
network rangeacl localnet src fe80::/10 # RFC 4291 link-local
(directly plugged) machines<br>
> acl SSL_ports port 443acl Safe_ports port 80 # httpacl
Safe_ports port 21 # ftpacl Safe_ports port 443 # httpsacl
Safe_ports port 70 # gopheracl Safe_ports port 210 # waisacl
Safe_ports port 1025-65535 # unregistered portsacl Safe_ports port
280 # http-mgmtacl Safe_ports port 488 # gss-httpacl Safe_ports
port 591 # filemakeracl Safe_ports port 777 # multiling httpacl
CONNECT method CONNECTacl PAGINASBLOQUEADAS url_regex -i porno
abcde<br>
> ## Recommended minimum Access Permission configuration:##
Deny requests to certain unsafe portshttp_access deny
PAGINASBLOQUEADAS<br>
> # Deny CONNECT to other than secure SSL portshttp_access deny
!Safe_ports<br>
> # Only allow cachemgr access from localhosthttp_access deny
CONNECT !SSL_portshttp_access allow localhost manager<br>
> # We strongly recommend the following be uncommented to
protect innocent# web applications running on the proxy server who
think the only# one who can access services on "localhost" is a
local user#http_access deny to_localhost<br>
> ## INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR
CLIENTS#<br>
> # Example rule allowing access from your local networks.#
Adapt localnet in the ACL section to list your (internal) IP
networks# from where browsing should be allowedhttp_access allow
managerhttp_access allow localnet<br>
> # And finally deny all other access to this proxyhttp_access
allow localhosthttp_access allow all<br>
> # Squid normally listens to port 3128http_port 3128
transparent<br>
> # Uncomment and adjust the following to add a disk cache
directory.<br>
> # Leave coredumps in the first cache dircoredump_dir
/var/spool/squid<br>
> ## Add any of your own refresh_pattern entries above
these.#refresh_pattern ^ftp: 1440 20%
10080refresh_pattern ^gopher: 1440 0% 1440refresh_pattern
-i (/cgi-bin/|\?) 0 0% 0refresh_pattern . 0 20%
4320<br>
><br>
><br>
> #juancache_mem 16384 MB#cache_replacement_policy heap LFUDA
#El parámetro maximum_object_size define el tamaño máximo de los
objetos que serán almacenados en el cache de
discomaximum_object_size 200 MBcache_swap_low 90cache_swap_high
95#correo del administrador del cachecache_mgr
<a href="mailto:ingenieria@conexiondigital.cocachemgr_passwd" target="_blank">ingenieria@conexiondigital.cocachemgr_passwd</a> cache all<br>
> #this workcache_dir aufs /var/spool/squid 40000 16 256 #this
no workcache_dir aufs /var/spool/squid2 40000 16 256 <br>
> cache_effective_user squidcache_effective_group squid<br>
><br>
><br>
><br>
> Juan Ernesto Alfonsoestudiante ingeniería
electrónicauniversidad distrital Francisco José de Caldas<br>
> JUANCHO<br>
> NEMESIS <br>
> KRAVEN<br>
><br>
> " si un día tienes que elegir entre el mundo y el amor...<br>
> recuerda: <br>
><br>
> si eliges el mundo quedarás sin amor, <br>
><br>
> pero si eliges el amor, con él conquistarás al mundo" <br>
><br>
> albert einstein <br>
><br>
><br>
><br>
> <br>
><br>
><br>
> _______________________________________________<br>
> squid-users mailing list<br>
> <a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a><br>
> <a href="http://lists.squid-cache.org/listinfo/squid-users" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a></span><br>
<br>
-----BEGIN PGP SIGNATURE-----
<br>
Version: GnuPG v2
<br>
<br>
iQEcBAEBCAAGBQJWaeLfAAoJENNXIZxhPexGV6wH/0dy5nyvKJBsB8cWnXpyU661
<br>
98aA96FF+8QlQW+dkAKyNJ/dNtjv/VyGbglqyDDoaqwq2+Uef3dZauwyIQcwoRxZ
<br>
TVhUu47v+cX1F6Ka+JWxvw7hsIumoEvrXQQxdBoZUAqdXDRyvdK/VeraGyV1y2LD
<br>
qYQB/vIV7u/PGgiyzE5vtZ/aHYnAsiLQxMD4a3SSvDnSNx9fklhRGyTljcNuVH5n
<br>
NAXeXE3JD9+NW9rFY3/49TWNGJMNzH9v9RyQPG5uWkov/hAR1fXiRW7a/TD6pZ6V
<br>
/gb54gbAQcdCMXwsly7XQTswoG6OKGLuLl6+mLbLz3hgBpDfZDNAQMpKM4npiSU=
<br>
=ayi0
<br>
-----END PGP SIGNATURE-----
<br>
<br>
<br>_______________________________________________
squid-users mailing list
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">squid-users@lists.squid-cache.org</a>
<a href="http://lists.squid-cache.org/listinfo/squid-users" target="_blank">http://lists.squid-cache.org/listinfo/squid-users</a></div></div> </div></div> </div></div> </div></div>
<br>_______________________________________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org" target="_blank">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>
<br></blockquote></div><br><br><div>As Rafael said,<br><br></div>Check your SELinux settings.<br><br><br></div></div>