Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 01-08-2008, 09:49 AM   #1
Steve Riley
Registered: Jan 2005
Location: Dallas
Distribution: Suse
Posts: 94

Rep: Reputation: 15
selinux prevents login

I set selinux to enforcing and was not able to login. I booted to a live CD and, turned selinux off, and was able to login. In the selinux troubleshooter it shows:

SELinux is preventing /usr/sbin/gdm-binary (hotplug_t) "entrypoint" access to /etc/X11/xinit/Xsession (bin_t).


SELinux is preventing access to files with the label, file_t.

As far as I know, I did not change anything to create this problem. How can I correct these so that I can use enforcing mode? I'm using CentOS 5.1.

Also, let me know of any good resources for learning SELinux for Red Hat system administration. Everything I've seen is very conceptual, not very practical. At the Red Hat site they mostly say, "take the class"!

Old 01-08-2008, 10:44 AM   #2
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,170

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Do you have the selinux-polgengui command installed? If so, just run it to change your policy as needed.

Do you have the system-cofig-selinux command installed? If so, run and see if that can help.

If you have neither of those tools, see if you can find them is the CentOS repositories.

Of course, if you can't log in, you system is very secure.


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
"../system.h :selinux/selinux.h:no such file or directory" ashmita04 Linux From Scratch 4 02-05-2009 03:36 AM
SELinux preventing cvs login bullet45 Linux - Software 1 01-24-2007 05:00 AM
SElinux Disaster / Can't Login / X11 Blocks tarek_taha Fedora 5 06-08-2006 08:29 AM
SELinux prevents adding users in FC3? Phaethar Fedora 0 12-27-2004 09:54 AM
app launched at boot not prevents access to login screen wvmikep Linux - Newbie 5 07-03-2004 07:41 AM

All times are GMT -5. The time now is 07:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration