Skip to content

Commit cf876e6

Browse files
committed
DOCS-10737: server parameter honorSystemUmask
1 parent 9fe55d4 commit cf876e6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

source/reference/parameters.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,32 @@ Storage Parameters
12511251
.. seealso:: :setting:`~storage.syncPeriodSecs` and
12521252
:parameter:`journalCommitInterval`.
12531253

1254+
.. parameter:: honorSystemUmask
1255+
1256+
.. versionadded:: 3.6
1257+
1258+
*Default*: ``false``
1259+
1260+
If :parameter:`honorSystemUmask` is set to ``true``, new files
1261+
created by MongoDB have permissions in accordance with the
1262+
user's ``umask`` settings.
1263+
1264+
If :parameter:`honorSystemUmask` is set to ``false``, new files
1265+
created by MongoDB have permissions set to ``600``, which gives
1266+
read and write permissions only to the owner. New directories have
1267+
permissions set to ``700``.
1268+
1269+
You can only set this parameter during start-up and cannot change
1270+
this setting using the :dbcommand:`setParameter` database command.
1271+
1272+
.. code-block:: sh
1273+
1274+
mongod --setParameter honorSystemUmask=true
1275+
1276+
.. note::
1277+
1278+
:parameter:`honorSystemUmask` is not available on Windows systems.
1279+
12541280
WiredTiger Parameters
12551281
~~~~~~~~~~~~~~~~~~~~~
12561282

0 commit comments

Comments
 (0)