Explore how to enable and disable the enforcement activity of SELinux.
- [Instructor] There's a few commands you'll use … when working with SELinux. … First, there's setenforce. … Setenforce sets whether the enforcing … or permissive mode is active. … As we saw before, my system is set to enforcing. … With the command setenforce zero, … I can set it to permissive. … And I can set it back to enforcing with setenforce one. … This change only persists until the system is rebooted. … So to make a permanent change, … you need to edit the etc sysconfig SELinux file. … To do that, I'll write vi etc sysconfig … SELinux. … This SELinux line here … is where you set the state permanently. … I'll leave mine on enforcing … and it's a good idea to leave SELINUXTYPE … set to targeted. … There's two commands I'll use later in the course … to work with security context. … Chcon, which changes the context of files and folders, … which we'll see in the web service video, … and setsebool, which I'll use in the file sharing video … to change a Boolean value. … If things aren't working the way you expect them too, …
Author
Released
3/14/2019- What is CentOS?
- Installing CentOS
- Configuring networking manually
- Configuring the network with NetworkManager
- Connecting remotely
- Working with security-enhanced Linux (SELinux)
- Setting up a firewall
- Setting up a web server
- Sharing user home folders with Samba
- Setting up a desktop environment
- Troubleshooting
Skill Level Beginner
Duration
Views
Related Courses
-
Unix for Mac OS X Users
with Kevin Skoglund6h 35m Beginner
-
Introduction
-
Learning CentOS43s
-
What is CentOS?3m 6s
-
What you should know2m 31s
-
-
1. Getting Started
-
Installation options4m 8s
-
Creating installation media2m 26s
-
-
2. Basic Administration
-
Setting the hostname2m 32s
-
File permissions2m 12s
-
Installing packages by group1m 34s
-
3. Working with Security-Enhanced Linux (SELinux)
-
Introducing SELinux2m 19s
-
Working with SELinux1m 41s
-
Disabling SELinux1m 7s
-
-
4. Working with Common Services and Applications
-
Service management1m 51s
-
Setting up a web server6m 58s
-
-
5. Using a Desktop
-
6. Troubleshooting
-
The startup process1m 29s
-
Exploring the logs1m 59s
-
-
Conclusion
-
Next Steps44s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Working with SELinux