Find the answer to your Linux question:
Results 1 to 4 of 4
I edited my /etc/selinux/config file, in it I change (selinux=targeted) to (selinux=disabled) and now I'm unable to boot my system. My system just hangs after trying to boot and I ...
  1. #1
    Just Joined!
    Join Date
    Nov 2011
    Posts
    3

    Boot error "Failed to load SELinux policy!"

    I edited my /etc/selinux/config file, in it I change (selinux=targeted) to (selinux=disabled) and now I'm unable to boot my system. My system just hangs after trying to boot and I keep getting an error that says "Failed to load SELinux policy!", what can I possibly do to fix the problem??? Please take mercy on me I'm new to the linux world!!

  2. #2
    Linux Guru
    Join Date
    May 2011
    Posts
    1,838
    I thought that was all you needed to do to disable SELinux...how about this as a way to at least boot: reboot and at the grub prompt, press the a key to append to the kernel line and add

    Code:
     selinux=0 noselinux
    then boot. Does that work?

  3. #3
    Just Joined!
    Join Date
    Nov 2011
    Posts
    3

    You are a genious

    Quote Originally Posted by atreyu View Post
    I thought that was all you needed to do to disable SELinux...how about this as a way to at least boot: reboot and at the grub prompt, press the a key to append to the kernel line and add

    Code:
     selinux=0 noselinux
    then boot. Does that work?
    Thank you very much, you are a genious!!! It worked, I got in and am able to edit SELinux, now my question is how do I edit it so that it doesn't prevent Samba from working because that's the reason I edited it in the first place because I thought that it might have been the reason I couldn't get Samba to share files.

  4. #4
    Linux Guru
    Join Date
    May 2011
    Posts
    1,838
    Well, I *thought* all you need was this:

    Code:
    SELINUX=disabled
    in the file /etc/selinux/config and reboot. But if that doesn't work, you can certainly put the above kernel parameters in the appropriate kernel line(s) in your grub config file (/etc/grub.conf typically).

    Edit: I just re-read your initial post - is it case-sensitive maybe?
    Last edited by atreyu; 11-25-2011 at 12:30 AM. Reason: case?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...