LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-09-2008, 04:01 PM   #1
ShaqDiesel
Member
 
Registered: Jul 2005
Posts: 144

Rep: Reputation: 15
/selinux/enforce not found


I'm trying to see what mode selinux is in by typing 'cat /selinux/enforce' but 'enforce' doesn't exist anywhere. Wasn't this file supposed to be created after installing RHEL 4?

Is there another way I can check whether SElinux is disabled or enabled on my server?
 
Old 09-09-2008, 04:05 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
To my understanding, if the /selinux directory is empty, it's disabled.
 
Old 09-09-2008, 04:08 PM   #3
ShaqDiesel
Member
 
Registered: Jul 2005
Posts: 144

Original Poster
Rep: Reputation: 15
Thanks, I thought it might be enabled because I can't connect to localhost for anything(like MySQL).
 
Old 09-09-2008, 04:11 PM   #4
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by ShaqDiesel View Post
Thanks, I thought it might be enabled because I can't connect to localhost for anything(like MySQL).
Connecting to MySQL from the localhost would be an entirely different issue.
 
Old 09-09-2008, 04:20 PM   #5
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
That said, "getenforce" tells you the current status
 
Old 09-09-2008, 04:39 PM   #6
ShaqDiesel
Member
 
Registered: Jul 2005
Posts: 144

Original Poster
Rep: Reputation: 15
Smile

Thanks, getenforce told me it was disabled. Now I have to figure out why I can't connect to MySQL
 
Old 09-09-2008, 04:44 PM   #7
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try looking in your logs - try /var/log/mysqld and /var/log/messages. Are you sure mysqld is running (ps aux | grep mysqld)
 
Old 09-11-2008, 05:26 PM   #8
ShaqDiesel
Member
 
Registered: Jul 2005
Posts: 144

Original Poster
Rep: Reputation: 15
I don't have mysqld in /var/log =(

ps -ef | grep mysqld shows that mysqld is running.
 
Old 09-11-2008, 05:58 PM   #9
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 have something like

log-error=/var/log/mysqld.log


in my.cnf?
 
Old 09-11-2008, 06:28 PM   #10
ShaqDiesel
Member
 
Registered: Jul 2005
Posts: 144

Original Poster
Rep: Reputation: 15
Haha, I don't have my.cnf either.
 
  


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
Squirrelmail SElinux Default preference file not found or not readable terek Linux - Security 11 02-04-2011 10:26 AM
httpd access with selinux enforce mode, restriction issues. rajnishmishra Linux - Security 3 08-19-2008 03:46 PM
enforce a bandwidth limit for scp per user lothario Linux - Networking 1 06-29-2008 02:00 PM
LXer: Enforce User Guidelines And Restrictions With Sabayon On Fedora 8 (Gnome) LXer Syndicated Linux News 0 05-09-2008 04:20 PM
Force samba client to enforce dos time stamps tisource Linux - Networking 2 02-06-2005 01:05 PM


All times are GMT -5. The time now is 03:46 PM.

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