mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 03:44:40 +00:00
Update cheatsheets
This commit is contained in:
35
tldr/linux/restorecond
Normal file
35
tldr/linux/restorecond
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# restorecond
|
||||
|
||||
> Daemon that monitors file creation and automatically restores SELinux contexts.
|
||||
> Useful for directories where files are frequently created with incorrect contexts.
|
||||
> See also: `restorecon`, `semanage-fcontext`.
|
||||
> More information: <https://manned.org/restorecond>.
|
||||
|
||||
- Start the `restorecond` daemon:
|
||||
|
||||
`sudo restorecond`
|
||||
|
||||
- Run `restorecond` in [v]erbose mode to see restoration events:
|
||||
|
||||
`sudo restorecond -v`
|
||||
|
||||
- Run `restorecond` in [d]ebug mode:
|
||||
|
||||
`sudo restorecond -d`
|
||||
|
||||
- Use alternative restorecond.conf file:
|
||||
|
||||
`sudo restorecond -f restorecond_file`
|
||||
|
||||
- Check the status of the restorecond service:
|
||||
|
||||
`sudo systemctl status restorecond`
|
||||
|
||||
- Enable restorecond to start at boot:
|
||||
|
||||
`sudo systemctl enable restorecond --now`
|
||||
Reference in New Issue
Block a user