Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/includes/fact-selinux-redhat-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Using a Custom MongoDB Directory Path

.. code-block:: bash

restorecon -R -v </some/MongoDB/directory>
sudo restorecon -R -v </some/MongoDB/directory>

For example:

Expand All @@ -160,7 +160,7 @@ For example:

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``):
Expand All @@ -169,7 +169,7 @@ For example:

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
Expand Down