From adc405e5bebd5026b9e8b7e2c7ceaebdd470e5eb Mon Sep 17 00:00:00 2001 From: niol Date: Fri, 24 May 2024 22:52:10 +0200 Subject: [PATCH] fir scripts, document usage of systemd overrides rather than changing /lib files (#6800) --- docs/Scripts.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/Scripts.md b/docs/Scripts.md index 865958e54..5b6a67350 100644 --- a/docs/Scripts.md +++ b/docs/Scripts.md @@ -46,4 +46,17 @@ Scripts which have not yet been ported and may not work with the latest version: * https://github.com/jaboto/Transmission-script - (cron)script set network limits according to the number of clients in the network ## Security with systemd -`transmission-daemon`'s packaging has many permissions disabled as a standard safety measure. If your script needs more permissions than are provided by the default, users have [reported](https://github.com/transmission/transmission/issues/1951) that it can be resolved by changing to `NoNewPrivileges=false` in `/lib/systemd/system/transmission-daemon.service`. +`transmission-daemon`'s packaging has many permissions disabled as a standard safety measure. If your script needs more permissions than are provided by the default, users have [reported](https://github.com/transmission/transmission/issues/1951) that it can be resolved by changing to `NoNewPrivileges=false` using a systemd unit override. + +``` +$ sudo systemctl edit transmission-daemon.service +``` + +and add the following content to the override: + +``` +[Service] +NoNewPrivileges=false +``` + +and that override will be kept untouched by package upgrades.