LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-17-2007, 01:18 AM   #1
davimint
Member
 
Registered: Jan 2006
Distribution: Slackware Current
Posts: 272

Rep: Reputation: 33
Problem installing squid as a web filter with dansguardian


While I was "trying" to install samba I noticed several files on the kids computer that were not the best flavor for their age. To fix this window's box I install some software but I decided it may be best to also install something on my linux boxes.

I found the following link to set up squid with dansguardian http://www.linux.com/articles/113733.

In the squid section where it ask me to check and set up groups for squid it uses the following -r switch and I can't get it to work and don't find any reference to it in the man page. I've googled and have yet to find anything.


Code:
groupadd -r squid
useradd -g squid -d /var/spool/squid -s /bin/false -r squid
Also, to make things even worse I tried the following two commands thinking they would be correct.

groupadd -g 43 -o squid
"I used gid #43 because there was not a gid using that number" but instead of putting the #43 in order like I thought it would it put at the end of the file. So now I want to fix what I just messed up and I can't. When I try to remove it I get the following.

Code:
bash-3.1# groupdel squid
groupdel: cannot remove user's primary group.
I also tried the useradd without the "-r" from the above
post like follows and not for sure what it did if anything.

Code:
useradd -g squid -d /var/spool/squid -s /bin/false squid
I guess I'll never learn.
Anyway, I need some help.
 
Old 07-17-2007, 07:11 PM   #2
davimint
Member
 
Registered: Jan 2006
Distribution: Slackware Current
Posts: 272

Original Poster
Rep: Reputation: 33
Ok, I had to delete the user "squid" before I could remove the group squid.
But anyway that's fixed. "lession learned"

So, now I just need to read up on squid and figure out the "-r" switch in the directions I'm using... Or find some better directions on installing squid.

Last edited by davimint; 07-17-2007 at 07:15 PM.
 
Old 07-20-2007, 11:40 AM   #3
granth
Member
 
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 210

Rep: Reputation: 50
When you installed Squid, the proper user/group should have been added automatically.

At work, I use FreeBSD + Squid + Dansguardian. It is a very capable and reliable setup.

It is a good idea to use Squid's transparent proxy feature, so you do not need to make any changes on your client machines, except for default gateway. This feature needs to be compiled in .
 
Old 07-21-2007, 06:18 AM   #4
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
Been using squid and DansGuardian for years and it works like a charm

I would guess those -r options are for another distro's groupadd/useradd.

Something like this should work.

Code:
#!/bin/sh

if [ ! "$(grep -s "^squid" /etc/group)" ]; then
        /usr/sbin/groupadd -g 95 squid
fi

if [ ! "$(grep -s "^squid" /etc/passwd)" ]; then
        /usr/sbin/useradd -d /var/spool/squid -g squid -u 95 -s /bin/false squid
fi

/bin/chown -R squid.squid /var/spool/squid
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Content Filter: DansGuardian + Squid whitedad Linux - Newbie 4 06-20-2006 11:32 AM
Problem using Squid, Dansguardian and IPtables as web filtering! cryonics Linux - Networking 7 05-09-2006 02:00 PM
Squid as Web Filter + Web Server in other machine Balkce *BSD 3 12-17-2005 04:40 PM
Squid as Web Filter + Web Server in other machine Balkce Linux - Networking 2 12-15-2005 08:13 PM
web filter tools for squid alnreddy Linux - Networking 4 03-28-2005 09:14 AM


All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration