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, …
- 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
Skill Level Beginner
1. Getting Started
2. Basic Administration
3. Working with Security-Enhanced Linux (SELinux)
4. Working with Common Services and Applications
5. Using a Desktop
- 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.Cancel
Take 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.