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 06-28-2006, 10:36 AM   #1
manser
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Rep: Reputation: 0
SELINUX user queries


Dear all, I have to apologize in advance for my lack of knowledge in SELINUX.
Users on my system are currently receiving the following message when logging in,
"Your default context is user_u:system_r:unconfined_t.
Do you want to choose a different one? [n]
"
I have two questions here,
1) If I decide to leave SELINUX, how do I set this user or other users so that the message does not appear.
2) how do I switch off the SELINUX facility.
The /etc/selinux/config file contains the following,
"# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=Disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted"

Is the SELINUX variable case sensitive? Should this be set to 'disabled' rather then 'Disabled'.

Any help would be appreciated?
 
Old 06-28-2006, 10:50 AM   #2
nlinecomputers
Member
 
Registered: Aug 2005
Location: Midland, TX
Distribution: Ubuntu
Posts: 125

Rep: Reputation: 15
I'm not strong on SELINUX but I would think that it IS case sensitive as most things in Linux are. Certainly no harm in trying it that way.

Also it would help to know what distro this is. RHEL, Suse, Debian?
 
Old 06-29-2006, 04:27 AM   #3
manser
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for that. If i set the variable to 'disabled', I presume this will take affect upon reboot?
 
Old 06-29-2006, 07:05 AM   #4
nlinecomputers
Member
 
Registered: Aug 2005
Location: Midland, TX
Distribution: Ubuntu
Posts: 125

Rep: Reputation: 15
As I understand it, Yes.

Again I ask what distro is this?
 
Old 06-30-2006, 08:48 AM   #5
manser
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for the replies.
We are talking about GNU/Linux
 
Old 06-30-2006, 09:14 AM   #6
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Rep: Reputation: 15
really need to dig into SELINUX. :-)
 
Old 06-30-2006, 09:21 AM   #7
nlinecomputers
Member
 
Registered: Aug 2005
Location: Midland, TX
Distribution: Ubuntu
Posts: 125

Rep: Reputation: 15
Quote:
Originally Posted by manser
thanks for the replies.
We are talking about GNU/Linux
Linux is just the kernel. SELinux is implemented different on different distros. I ask for the THIRD time. What DISTRO are you using!!!!????
 
Old 07-03-2006, 04:14 AM   #8
manser
LQ Newbie
 
Registered: Jun 2006
Posts: 6

Original Poster
Rep: Reputation: 0
hi, The distro is as follows

Red Hat Enterprise Linux ES release 4 (Nahant Update 2)
Thanks
 
Old 07-03-2006, 06:17 AM   #9
lurker79
Member
 
Registered: Jan 2005
Location: UK
Posts: 55

Rep: Reputation: 16
You may find the following tools very useful when dealing with SELinux
system-config-securitylevel - allows you to enable/disable SELinux
restorecon - set SELinux contexts for files and directories back to defaults
 
  


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
help with basic queries? stuartmcgeown Linux - General 4 05-22-2006 08:50 AM
How do you enable user directories for vsFTP under SELinux? SparceMatrix Linux - Security 2 04-12-2006 04:17 AM
snmp queries alaios Linux - Networking 2 05-16-2005 06:06 AM
multiple user/password queries with sambaand nautilus xround Linux - Networking 1 09-10-2004 06:39 AM
***Queries for all of u***** LinuxRam Linux - General 6 08-02-2004 01:09 PM

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

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