From c2bb8f321d3588532af0995b7c905fb0a8f0dcf2 Mon Sep 17 00:00:00 2001 From: jason-price-mongodb Date: Tue, 16 Nov 2021 13:55:10 -0800 Subject: [PATCH] DOCSP-19034 SELinux command assumes read permission --- source/includes/fact-selinux-redhat-options.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/includes/fact-selinux-redhat-options.rst b/source/includes/fact-selinux-redhat-options.rst index cb3b83154be..edc3f4e7cba 100644 --- a/source/includes/fact-selinux-redhat-options.rst +++ b/source/includes/fact-selinux-redhat-options.rst @@ -151,7 +151,7 @@ Using a Custom MongoDB Directory Path .. code-block:: sh - restorecon -R -v + sudo restorecon -R -v For example: @@ -166,7 +166,7 @@ Using a Custom MongoDB Directory Path sudo semanage fcontext -a -t mongod_var_lib_t '/mongodb/data.*' sudo chcon -Rv -u system_u -t mongod_var_lib_t '/mongodb/data' - restorecon -R -v '/mongodb/data' + sudo restorecon -R -v '/mongodb/data' - If using a non-default MongoDB log directory of ``/mongodb/log`` (e.g. if the log file path is ``/mongodb/log/mongod.log``): @@ -175,7 +175,7 @@ Using a Custom MongoDB Directory Path sudo semanage fcontext -a -t mongod_log_t '/mongodb/log.*' sudo chcon -Rv -u system_u -t mongod_log_t '/mongodb/log' - restorecon -R -v '/mongodb/log' + sudo restorecon -R -v '/mongodb/log' Using a Custom MongoDB Port