LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-24-2011, 04:04 PM   #1
Lumio
LQ Newbie
 
Registered: Jul 2011
Posts: 12

Rep: Reputation: Disabled
Fedora 15: setsebool won't stop running


Hello,

I installed up apache and it runs fine. It's only for localy testing my php-apps. Now I tried to make a SymLink from /var/www/html to /home/lumio/Sites. But SELinux prevents that. So I tried, what it told me to do:

Code:
setsebool -P httpd_read_user_content 1
setsebool -P httpd_enable_homedirs 1
But when I start with the first line, it just runs the command but won't stop, and won't tell me anything.

Does anyone know, why?
 
Old 07-24-2011, 04:59 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

Welcome to LQ!!!

How much time did you wait for it to come back to the console.

When you run setsebool with -P option it takes time to make the changes. If you will just run setsebool <boolean> = on it will not take time because this setting will remain alive until reboot.

When you run setsebool -P <boolean>=on or setsebool -P <boolean> 1 it takes around 10-20 seconds to do the changes. Did you check the boolean once it comes back to prompt (after giving it enough time to run) using getsebool -a | grep <service name>
 
Old 07-25-2011, 11:48 AM   #3
Lumio
LQ Newbie
 
Registered: Jul 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks I just didn't wait long enough. But I can't use symlinks anyway :/ I think I missed something else.
 
Old 08-24-2011, 01:00 AM   #4
ajit_a
LQ Newbie
 
Registered: Dec 2010
Posts: 6

Rep: Reputation: 0
hi friends,
I am also trying some hands on SELinux but there is a lot of confusion.

I had initially heard that once we enable SELinux everything stops working but that was not the case. I enabled SELinux on my Web and App server still everything is working fine.

Can someone tell me the parameters that should be modified and how to do so ??

Any simple tutorial available with lots of example ?

Thank you
Ajit
 
Old 08-24-2011, 02:08 PM   #5
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
@ Reply

Hi there,

Welcome to LQ!!!

Here is the tutorial that will help: http://hackinglinux.blogspot.com/200...-tutorial.html

and

here is the pdf which explains SeLinux step by step: http://www.google.co.in/url?sa=t&sou...3QJ60YJm2aQOrw
 
Old 08-26-2011, 01:56 PM   #6
ajit_a
LQ Newbie
 
Registered: Dec 2010
Posts: 6

Rep: Reputation: 0
hey thanks,
The pdf file is quite good...after getting an ovoerview from it, I will dig the net..:-)
 
  


Reply



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 problem :: setsebool error custangro Linux - Security 3 10-25-2008 02:21 AM
How to use setsebool command ? onkia Fedora 1 09-30-2006 08:08 AM
Program on boot-up won't stop running in a continuous loop... CanadianSlacker Slackware 6 01-14-2004 01:06 AM
cupsd won't stop, won't start ?! jkcunningham Linux - General 0 06-19-2003 08:14 AM
Kpersonalizer won't stop running! iihay Linux - General 2 07-08-2002 05:48 PM

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

All times are GMT -5. The time now is 09:33 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