Skip to content

[BUG] Completed torrents written with readonly permissions #295

Closed as not planned
@thany

Description

@thany

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Once a torrent is completed, it is moved to its final location on disk, and that location is created using drwxr-xr-x permission. This prevents me from being able to delete it.

Expected Behavior

It should inherit permissions from the parent directory, i.e. not touch permissions at all and just let the filesystem decide. For me that would be drwxrwxrwx on the parent directory.

Steps To Reproduce

Just make sure the incomplete and complete directories are two physically distinct directories.

Environment

- OS: Unraid 6.12.13
- How docker service was installed: via "Apps"

CPU architecture

x86-64

Docker creation

image

Container logs

Connection to localhost (127.0.0.1) 9091 port [tcp/*] succeeded!
[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝

   Brought to you by linuxserver.io
───────────────────────────────────────

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    99
User GID:    100
───────────────────────────────────────
Linuxserver.io version: 4.0.6-r0-ls267
Build-date: 2024-11-14T00:18:40+00:00
───────────────────────────────────────
    
[custom-init] No custom files found, skipping...
[ls.io-init] done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions