>_ linuxcommand.dev
Startseite restorecon
Sicherheit

restorecon

Setzt SELinux-Dateikontexte auf die Standardwerte zurück.

CentOS
Verifiziert: 2026-02-09
Syntax
$restorecon [OPTIONEN] PFAD
Optionen
-R Rekursiv
-v Verbose-Ausgabe
Beispiele
$sudo restorecon -Rv /var/www/html
$sudo restorecon -v /etc/nginx/nginx.conf
Typische Anwendungsfälle
?
Standardverwendung
restorecon --help
Hinweis Typischer Schritt bei SELinux-Policy-Problemen.
Export