Okay, so I'm running squid as a cache and content filter. However whenever my script--ran by squid, whoami'd as _squid--tries to place anything in /var/www/htdocs/images/ it get's a "permission denied"
I've been following this guide to get me started:
https://help.ubuntu.com/community/Upside-Down-TernetHowTo
I've edited the script and all the commands to fit my directory layout. I think I'm messed up at this step though:
Code:
sudo mkdir /var/www/images
sudo chown www-data:www-data /var/www/images
sudo chmod 755 /var/www/images
sudo usermod -aG proxy www-data
Which I've done as
Code:
mkdir /var/www/htdocs/images
chown www:www /var/www/htdocs/images
chmod 755 /var/www/htdocs/images
usermod -G _squid www
However, the problem is two-fold. If I chown htdocs/images to _squid:_squid then the python/squid script can place files (verified) in htdocs/images but apache gets I get a "403 Forbidden".
Code:
usermod -G www _squid
To be honest I'm completely lost here
Code:
# ls -lR /var/www/htdocs/
total 4
drwxr-xr-x 2 www www 512 Sep 5 12:53 images
/var/www/htdocs/images:
total 12
-rw-r----- 1 _squid _squid 2222 Sep 5 05:02 test.gif
# cat /etc/group | grep _squid
www:*:67:_squid
_squid:*:515:www
Honestly it looks me to me like www and _squid should have access both ways.