Skip to content

DOCS-10737: server parameter honorSystemUmask #3021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
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
26 changes: 26 additions & 0 deletions source/reference/parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,32 @@ Storage Parameters
.. seealso:: :setting:`~storage.syncPeriodSecs` and
:parameter:`journalCommitInterval`.

.. parameter:: honorSystemUmask

.. versionadded:: 3.6

*Default*: ``false``

If :parameter:`honorSystemUmask` is set to ``true``, new files
created by MongoDB have permissions in accordance with the
user's ``umask`` settings.

If :parameter:`honorSystemUmask` is set to ``false``, new files
created by MongoDB have permissions set to ``600``, which gives
read and write permissions only to the owner. New directories have
permissions set to ``700``.

You can only set this parameter during start-up and cannot change
this setting using the :dbcommand:`setParameter` database command.

.. code-block:: sh

mongod --setParameter honorSystemUmask=true

.. note::

:parameter:`honorSystemUmask` is not available on Windows systems.

WiredTiger Parameters
~~~~~~~~~~~~~~~~~~~~~

Expand Down
7 changes: 6 additions & 1 deletion source/release-notes/3.6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,15 @@ MongoDB 3.6 includes the following enhancements:
- :dbcommand:`dropDatabase` waits until all collections drops in the
database have propagated to a majority of the replica set members.


- The new :query:`$jsonSchema` operator matches documents that validate
against the given JSON Schema.

- The new :parameter:`honorSystemUmask` startup option for
:program:`mongod` causes new files created by MongoDB to have
the read/write permissions specified by the `umask
<https://en.wikipedia.org/wiki/Umask>`_ of the user who runs the
:program:`mongod` process. Only available on Linux and OS X systems.

Changes Affecting Compatibility
-------------------------------

Expand Down