LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-19-2009, 11:43 PM   #1
Soby Thomas
LQ Newbie
 
Registered: Jul 2008
Location: India
Posts: 28

Rep: Reputation: 15
SElinux help in RHEL 4 for squid.........!!!


Hii guys.....

'm configuring squid proxy for dhcp server. I have given the cache dir as
/data1/squid. I have changed the ownership and group to squid also i have given the file permissions too. My doubt is should i also change SElinux context of the cache dir too. And if yes to what context??. Below is the
ls listing for the dir

ls -ld /data1/squid
drwxr-xr-x 258 squid squid 4096 May 19 16:10 /data1/squid/

ls -ldZ /data1/squid
drwxr-xr-x squid squid rootbject_r:file_t /data1/squid/



Help me guys............!!!
 
Old 05-19-2009, 11:50 PM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Do you still have the default directory? Try ls -lZd /var/spool/squid

On RHEL5 it would be squid_cache_t, but not sure in RHEL4

Last edited by billymayday; 05-19-2009 at 11:52 PM.
 
Old 05-20-2009, 12:12 AM   #3
Soby Thomas
LQ Newbie
 
Registered: Jul 2008
Location: India
Posts: 28

Original Poster
Rep: Reputation: 15
Yes i have ,
ls -ldZ /var/spool/squid
drwxr-x--- squid squid system_ubject_r:squid_cache_t /var/spool/squid


ok i will change to squid_cache_t. So wat system_u??? Do i have to change dat also???
 
Old 05-20-2009, 12:15 AM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You should be able to change them both in one go with

chcon system_u:object_r:squid_cache_t /data1/squid/
 
Old 05-20-2009, 12:53 AM   #5
Soby Thomas
LQ Newbie
 
Registered: Jul 2008
Location: India
Posts: 28

Original Poster
Rep: Reputation: 15
Wink

okke dude........thanks.....i did change the selinux context......
 
  


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
SElinux rules for squid sohailkmu Linux - Newbie 5 05-19-2011 02:56 AM
Could I use Squid v2.5 in RHEL 5, by default its use v2.6 addil Linux - Newbie 2 04-12-2009 01:17 PM
RHEL 5 SELinux and NFS louisb Linux - Security 2 08-17-2007 07:38 PM
LXer: With RHEL 5, Red Hat goes to bat for SELinux LXer Syndicated Linux News 0 06-07-2007 09:16 AM
Squid monitoring and authentication on RHEL 3 ES jterr02 Linux - Enterprise 1 03-02-2005 12:44 AM


All times are GMT -5. The time now is 03:11 AM.

Main Menu
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