Skip to content

Commit 2959ed7

Browse files
authored
Adapt to review suggestions
Signed-off-by: Łukasz Domeradzki <JustArchi@JustArchi.net>
1 parent 15e1269 commit 2959ed7

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

‎admin_manual/configuration_server/background_jobs_configuration.rst‎

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,15 @@ This approach requires two files: **nextcloudcron.service** and **nextcloudcron.
139139
ExecStart=/usr/bin/php -f /var/www/nextcloud/cron.php
140140
KillMode=process
141141

142-
# Optional security hardening, all of the below entries are optional, but their existence improves the security of your system
142+
# Optional security hardening, the below entries improve the security of your system
143143
# More info can be found at https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html
144144
CapabilityBoundingSet=
145145
DevicePolicy=closed
146146
LockPersonality=yes
147147
NoNewPrivileges=yes
148148
PrivateDevices=yes
149149
PrivateIPC=yes
150-
PrivateMounts=yes
151150
PrivateTmp=yes
152-
PrivateUsers=yes
153151
ProcSubset=pid
154152
ProtectClock=yes
155153
ProtectControlGroups=yes
@@ -169,7 +167,17 @@ This approach requires two files: **nextcloudcron.service** and **nextcloudcron.
169167
SystemCallFilter=@system-service
170168
SystemCallFilter=~@privileged
171169
SystemCallFilter=~@resources
172-
UMask=0077
170+
171+
# Further hardening, requires specifying valid paths for usage
172+
#ProtectSystem=strict
173+
#ReadWritePaths=/path/to/nextcloud/root /path/to/nextcloud/data
174+
175+
# Further hardening, if no mounts can be found within nextcloud directories
176+
#PrivateMounts=yes
177+
178+
# Further hardening, if all files within nextcloud directories are owned by the nextcloud user (or root)
179+
#PrivateUsers=yes
180+
#UMask=0077
173181

174182
Replace the user ``www-data`` with the user of your http server and ``/var/www/nextcloud/cron.php`` with the location of **cron.php** in your nextcloud directory.
175183

0 commit comments

Comments
 (0)