diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-06-07 12:21:42 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-07 12:21:42 -0500 |
| commit | 77af3c020a880b2a820ca11afe27184c5df9e455 (patch) | |
| tree | 23e9cfaa410f1eee7c1b20d0a876ab90478d59f6 /docs | |
| parent | db7f9a0f1e91bb02ce61bb68b89b557421a46d12 (diff) | |
| parent | 611395e5686c2ec3ca11def92dc09230b2e97cc4 (diff) | |
| download | slskd-77af3c020a880b2a820ca11afe27184c5df9e455.tar.gz | |
Merge pull request #1756 from slskd/perms
Move 'permissions' options under 'destination', improve application of directory mode
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/config.md | 31 |
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. |
