Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 07-17-2007, 12:18 AM   #1
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

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.

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.

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.

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, 06:11 PM   #2
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 06:15 PM.
Old 07-20-2007, 10:40 AM   #3
Registered: Jul 2004
Location: USA
Distribution: Slackware64
Posts: 211

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, 05:18 AM   #4
Slackware Contributor
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 229Reputation: 229Reputation: 229
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.


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

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

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


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 10:32 AM
Problem using Squid, Dansguardian and IPtables as web filtering! cryonics Linux - Networking 7 05-09-2006 01:00 PM
Squid as Web Filter + Web Server in other machine Balkce *BSD 3 12-17-2005 03:40 PM
Squid as Web Filter + Web Server in other machine Balkce Linux - Networking 2 12-15-2005 07:13 PM
web filter tools for squid alnreddy Linux - Networking 4 03-28-2005 08:14 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:55 PM.

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