LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2006, 10:29 PM   #1
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Rep: Reputation: 15
security context on files and folders


Can someone explain security context for files and folders because I have been having an issue when upgrading some apps on my linux redhat server where it doesn't work and the only difference when i do a ls -Z is the security context. Also how can I change it and can someone explain the options.

Thanks,
Steve
 
Old 08-27-2006, 08:17 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,354
Blog Entries: 55

Rep: Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541Reputation: 3541
What release are you running?
Do you user strict or targetted policy?
What did you update?
Are there any avc related messages in your syslog?
Did you check out the audit2allow and fixfiles man pages?
 
Old 08-27-2006, 11:21 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,326
Blog Entries: 4

Rep: Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841Reputation: 2841
That's a rather big topic... There are thousands of articles on Google, and quite a few right here...

In a security-enhanced Linux system, the security context is what determines whether or not a particular operation is or is not allowed! Even root is subject to it!

Last edited by sundialsvcs; 08-27-2006 at 11:22 AM.
 
Old 08-28-2006, 09:12 AM   #4
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Original Poster
Rep: Reputation: 15
What I did was I was trying to create a new folder with files and set a new document root in Apache. Even though I used su to create that folder etc, Apache had a forbidden message. I went onto the server itself and created the folder and seemed to work fine. How can I change it if I am making doing something like that?

Thanks
 
  


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
SE linux problem when security context is modified raj123 Linux - Security 1 06-28-2006 06:05 AM
Impact if security context is modified raj123 Linux - Distributions 1 06-27-2006 04:46 PM
Default UID / GID / Security Context for httpd root directory rioguia Linux - Security 1 05-09-2006 12:26 PM
Samba can create new files and folders but access denied in any new folders k.king Linux - Networking 2 01-15-2006 06:14 AM
default security context jkmartha Linux - Newbie 1 08-03-2005 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration