aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-06-07 14:45:04 -0500
committerGitHub <noreply@github.com>2026-06-07 14:45:04 -0500
commitb747b68ba0ba777be578e73bd1328fbde940e436 (patch)
tree160d23aeb8707dc04f81bb52e81913c1b77bb2a4 /docs
parente06999e5eec1616d93b34ffbab0eade617d1aaf6 (diff)
parent2d069bbf1f71f38e1286e27d45c24b478feb11ac (diff)
downloadslskd-b747b68ba0ba777be578e73bd1328fbde940e436.tar.gz
Merge branch 'master' into dependabot/npm_and_yarn/src/web/launch-editor-2.14.1
Diffstat (limited to 'docs')
-rw-r--r--docs/config.md31
1 files changed, 20 insertions, 11 deletions
diff --git a/docs/config.md b/docs/config.md
index 8848060a..c8a8fca2 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -117,21 +117,11 @@ Users wishing to create files with different permissions can change the umask va
When running within a docker container the environment variable `SLSKD_UMASK` can be used to change the umask for the process within the container, and this will in turn change the resulting file mode on a mounted volume.
-Users can optionally configure alternative permissions for files by setting the file permission mode option. It's not possible to supersede the configured umask value; setting a mode of 777, for example, will have no effect with a umask of 022.
-
-These options have no effect on Windows.
+This option has no effect on Windows.
| Command-Line | Environment Variable | Description |
| ------------------------ | -----------------------------| -------------------------------------------------------------------------------- |
| n/a | `SLSKD_UMASK` | When running within the slskd Docker container, the umask for the process |
-| `--file-permission-mode` | `SLSKD_FILE_PERMISSION_MODE` | The permissions to apply to newly created files (chmod syntax, non-Windows only) |
-
-#### **YAML**
-```yaml
-permissions:
- file:
- mode: 644 # not for Windows, chmod syntax, e.g. 644, 777. can't escalate beyond umask
-```
# Application Directory Configuration
@@ -377,6 +367,25 @@ transfers:
max_delay: 60000 # maximum time between retries, in milliseconds
```
+## Destination
+
+### Permissions
+
+On [Unix-like](https://en.wikipedia.org/wiki/Unix-like) operating systems, downloaded files will be created according to the [umask](https://en.wikipedia.org/wiki/Umask) of the process (see [Permissions](#permissions) for more info).
+
+Users can optionally configure alternative permissions by setting the permission mode option which, when enabled, effectively causes slskd to `chmod` files and directories with the configured mode immediately after creation.
+
+This option has no effect on Windows.
+
+#### **YAML**
+```yaml
+transfers:
+ download:
+ destination:
+ permissions:
+ mode: 644 # chmod syntax, e.g. 644, 777. has no effect on Windows
+```
+
## Global Upload Limits
Global upload limits define the number of queued, daily, and weekly uploads on a _per user_ basis. These limits behave as defaults and are applied if limits for a user's group have not been set.