diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-06-06 19:19:18 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-06-06 19:19:18 -0500 |
| commit | c8db4eea05780e230c52bfd53513d72f2c5c7f19 (patch) | |
| tree | c460395b2eca551c1c9c232efb97ebd516997803 /docs/config.md | |
| parent | c1dd8157a683e2fb816ff0c5d06056cc0ac1e17a (diff) | |
| download | slskd-c8db4eea05780e230c52bfd53513d72f2c5c7f19.tar.gz | |
docs for download permissions
Diffstat (limited to 'docs/config.md')
| -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. |
