LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-30-2012, 10:04 PM   #1
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Rep: Reputation: 3
Separate Account for Squid Proxy?


I have a DMZ with Ubuntu 11.04 on the web server and Ubuntu 11.10 on the applications server. I am thinking of setting the Squid proxy up on the web server in order to enhance security by having Squid keep a log of packets that go in and out.

I read here that on should have a separate account for Squid. But the article is pretty old and a more recent article about using Squid for security does not mention doing that. Also I am running a web site and it seems that I need to be logged into the account I am running the web site from.

Any advice about whether I should have a separate account for Squid would be greatly appreciated.
 
Old 07-30-2012, 11:10 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I recommend installing it with your package manager and then reading /usr/share/doc/squid/README.Debian.gz and then decide if you want to (and how)
to run as a dedicated user.

Evo2.
 
Old 07-31-2012, 12:20 AM   #3
darthaxul
Member
 
Registered: Aug 2008
Distribution: Devuan; Gentoo; FreeBSD
Posts: 236

Rep: Reputation: 19
depends

Depends on how you want it set up really. But I would stick with separate accounts for separate tasks, just for logging purposes. But maybe it's easier to have one account for everything, but when the time comes to troubleshoot it may be harder to find the trouble point.
 
Old 07-31-2012, 09:13 AM   #4
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by evo2 View Post
Hi,

I recommend installing it with your package manager and then reading /usr/share/doc/squid/README.Debian.gz and then decide if you want to (and how)
to run as a dedicated user.

Evo2.
Thank you for your reply. I got the following errors when I tried to install Squid from the Ubuntu (v 11.04) software center.

Code:
installArchives() failed: Preconfiguring packages ...
Preconfiguring packages ...
Preconfiguring packages ...
Selecting previously deselected package squid.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 263966 files and directories currently installed.)
Unpacking squid (from .../squid_2.7.STABLE9-2.1ubuntu6_i386.deb) ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Processing triggers for man-db ...
Setting up rsh-client (0.17-15) ...
update-alternatives: error: alternative link /usr/bin/rcp is already managed by rcpDisabled.
dpkg: error processing rsh-client (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up squid (2.7.STABLE9-2.1ubuntu6) ...
squid start/running, process 24039
Errors were encountered while processing:
 rsh-client
Setting up rsh-client (0.17-15) ...
update-alternatives: error: alternative link /usr/bin/rcp is already managed by rcpDisabled.
dpkg: error processing rsh-client (--configure):
 subprocess installed post-installation script returned error exit status 2
Thanks,
Peter.
 
Old 07-31-2012, 09:17 AM   #5
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by darthaxul View Post
Depends on how you want it set up really. But I would stick with separate accounts for separate tasks, just for logging purposes. But maybe it's easier to have one account for everything, but when the time comes to troubleshoot it may be harder to find the trouble point.
Thank you for your reply. Sorry if this is a stupid question. A lot of this is new to me. If I am running Squid from a separate account, would I not need to log out of any other account and log into the Squid account in order for Squid to run?

Thanks,
Peter.
 
Old 07-31-2012, 07:17 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by OtagoHarbour View Post
Thank you for your reply. Sorry if this is a stupid question. A lot of this is new to me. If I am running Squid from a separate account, would I not need to log out of any other account and log into the Squid account in order for Squid to run?
The daemon startup would be initiated by root but an su to the squid user would be performed before squid is launched. This is standard practice for a huge number of daemons that run on *nix type systems.

Please check the README.Debian.gz as I suggested earlier.

Evo2.
 
Old 07-31-2012, 07:25 PM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by OtagoHarbour View Post
I got the following errors when I tried to install Squid from the Ubuntu (v 11.04) software center.
for some reason you seem to be trying to install rsh-client. Unfortunately the full output is missing (or perhaps this is a "feature" of "software center") so I don't know why that is happening.

Are you comfortable using the command line?

Evo2.
 
1 members found this post helpful.
Old 08-03-2012, 09:13 PM   #8
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by evo2 View Post

Are you comfortable using the command line?

Evo2.
Yes. I am comfortale using the command line. In fact I would prefer to do that since the pacake manager seems unreliable.

Thanks,
Peter.
 
  


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
Separate User Account for SSH ASJ925 Linux - Server 2 12-22-2011 06:50 PM
configure squid proxy with cc proxy as a parent proxy faisi Linux - Networking 1 08-10-2010 01:16 PM
Using ISA Server as Parent Proxy and want to setup Squid as dwonstream proxy tauseef1 Red Hat 1 04-09-2008 01:03 AM
configure squid proxy with microsoft proxy as a parent proxy nintykola Linux - Software 1 08-28-2007 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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
Open Source Consulting | Domain Registration