Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMartin Brugnara <martin@0x6d62.eu>2022-06-04 01:24:35 +0300
committerMartin Brugnara <martin@0x6d62.eu>2022-06-05 20:19:31 +0300
commit74095699940184048e4cdd84360f41cc08a12528 (patch)
tree5828176c3619bf8822c68101d55434aa27cce828 /config
parent4399ed47122543b404fff82b2246b55544842e57 (diff)
Expose umask override value as config parameter: localstorage.umask
Commit 451c06d introduced override for umask value. This is needed to avoid broken env configuration or dirty workers to mess with the permissions when creating new files. Most Nextcloud, that does not integrate with external software would work fine with an hard-coded value (451c06d set it at 022). Advanced install may require more flexibility, as such this commit exposes the "umask override value" as configuration parameter: `localstorage.umask` It defaults to 0022 both in code and in config/config.sample.php . Signed-off-by: Martin Brugnara <martin@0x6d62.eu>
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index c3a0048625c..4cb19c8d9e9 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -1840,6 +1840,18 @@ $CONFIG = [
'localstorage.allowsymlinks' => false,
/**
+ * Nextcloud overrides umask to ensure suitable access permissions
+ * regardless of webserver/php-fpm configuration and worker state.
+ * WARNING: Modifying this value has security implications and
+ * may soft-break the installation.
+ *
+ * Most installs shall not modify this value.
+ *
+ * Defaults to ``0022``
+ */
+'localstorage.umask' => 0022,
+
+/**
* EXPERIMENTAL: option whether to include external storage in quota
* calculation, defaults to false.
*