LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-07-2006, 11:42 PM   #1
blanny
Member
 
Registered: Dec 2002
Location: CA,USA
Distribution: RHCE in training :)
Posts: 57

Rep: Reputation: 15
I think I broke SELinux


Hello,

I had to edit an SELinux domain to enable read/execute permissions for a directory for apache. After I did that it caused all hell to break loose and now I can't even log in without being in rescue mode.

Can someone tell me how I can reset everything to the way it was, I didn't have any back ups...

Thanks,

Blanny
 
Old 10-08-2006, 12:52 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
maybe try disabling selinux like this: http://fedora.redhat.com/docs/selinu...html#id2825880

Quote:
Q: How do I turn SELinux off at boot?

A: Add selinux=0 to your kernel command line.

Be very careful using this option. If you boot with selinux=0, any files you create while SELinux is disabled will not have SELinux context information. At the least you may need to relabel the file system, and it's possible you will be unable to boot with selinux=1, requiring a boot to single-user mode for recovery.

As an alternative to selinux=0, try using SELINUX=disabled in /etc/selinux/config.

Last edited by win32sux; 10-08-2006 at 12:53 AM.
 
  


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 Vagrant Arch 3 02-24-2006 09:06 PM
what is selinux? mesh2005 Linux - General 2 01-04-2006 11:33 AM
Do I need SELinux? Please help! xbennyboy Linux - Software 2 01-02-2005 05:23 PM
what is SELINUX?? masand Linux - Security 3 09-02-2004 07:57 AM
Selinux fedorafreak Fedora 2 08-15-2004 09:41 AM

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

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