LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-28-2007, 05:12 AM   #1
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69
Blog Entries: 2

Rep: Reputation: 17
squid under chroot environment.


How to run squid under chroot environment ?

I am trying to use the chroot keyword in the configuration file
/etc/squid/squid.conf .

But while retsrting the service, it fails to start. The log file gives the following message.

"
FATAL: Bungled squid.conf line 3292: chroot
Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
FATAL: Bungled squid.conf line 3291: chroot
Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
FATAL: Bungled squid.conf line 3291: chroot
Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
FATAL: Bungled squid.conf line 3291: chroot
Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
FATAL: Bungled squid.conf line 3291: chroot
Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
"

Also can i disable the version information of squid.
 
Old 04-29-2007, 02:42 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by bzlaskar
FATAL: Bungled squid.conf line 3292: chroot
Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
FATAL: Bungled squid.conf line 3291: chroot
Squid Cache (Version 2.5.STABLE9): Terminated abnormally.
this would indicate a syntax error on lines 3291 and 3292 of your squid.conf...

what do those lines look like??

Quote:
Also can i disable the version information of squid.
IIRC, with a line like:
Code:
httpd_suppress_version_string on

Last edited by win32sux; 04-29-2007 at 02:44 AM.
 
Old 04-29-2007, 11:38 PM   #3
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69

Original Poster
Blog Entries: 2

Rep: Reputation: 17
[QUOTE=win32sux]this would indicate a syntax error on lines 3291 and 3292 of your squid.conf...

what do those lines look like??

IIRC, with a line like:[code]httpd_suppress_version_string on


I searched for the string in /etc/squid/squid.conf , but no such string is there . So , I put the line myself at the end of
/etc/squid/squid.conf . But it throws the following error.

"
Stopping squid: 2007/04/30 10:13:49| parseConfigFile: line 3466 unrecognized: 'httpd_suppress_version_string on'.
[ OK ]
Starting squid: . [ OK ]

"
And it also displaying the squid version if i execute

squid -v


I am using squid2.5 .
 
Old 04-29-2007, 11:39 PM   #4
bzlaskar
Member
 
Registered: May 2006
Location: Bangalore, INDIA
Distribution: Fedora Core
Posts: 69

Original Poster
Blog Entries: 2

Rep: Reputation: 17
this would indicate a syntax error on lines 3291 and 3292 of your squid.conf...

what do those lines look like??

I have just entered

chroot
at line 3291 so that squid runs in chrooted environment.
 
  


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
getting started in chroot environment Mystified Linux From Scratch 3 03-28-2005 09:11 AM
mount in chroot environment not possible moskito01 SUSE / openSUSE 5 12-06-2004 04:06 PM
Apache in a chroot environment tarballedtux Linux - Software 1 04-13-2004 07:37 PM
Out of the chroot environment? R2RO Linux - Networking 0 05-14-2003 04:01 PM
Getting in and out and in again in the CHROOT environment? kRu_ZaDeR Linux From Scratch 8 01-13-2003 12:20 AM

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

All times are GMT -5. The time now is 07:19 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
Open Source Consulting | Domain Registration