snippetbashTip
restorecond — Daemon that monitors file creation and automatically restores SELinux contexts. Useful for directori
Viewed 0 times
commandrestorecondcreationmonitorsdaemonclifilethat
linux
Problem
How to use the
restorecond command: 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>.Solution
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 restorecondRun
restorecond in [v]erbose mode to see restoration events:sudo restorecond -vRun
restorecond in [d]ebug mode:sudo restorecond -dUse alternative
restorecond.conf file:sudo restorecond -f restorecond_fileCheck the status of the restorecond service:
sudo systemctl status restorecondEnable restorecond to start at boot:
sudo systemctl enable restorecond --nowCode Snippets
Start the `restorecond` daemon
sudo restorecondRun `restorecond` in [v]erbose mode to see restoration events
sudo restorecond -vRun `restorecond` in [d]ebug mode
sudo restorecond -dUse alternative `restorecond.conf` file
sudo restorecond -f restorecond_fileCheck the status of the restorecond service
sudo systemctl status restorecondContext
tldr-pages: linux/restorecond
Revisions (0)
No revisions yet.