[Bug]: Weird file permissions of uploaded files #905

Closed
opened 2026-04-24 23:25:39 +02:00 by adam · 2 comments
Owner

Originally created by @lkiesow on GitHub (Jan 22, 2023).

Describe the issue

Uploading an audio file via the user interface will cause this file to be put on the file system marked as an executable:

# ls -lh --color /data/audiobooks/Lars\ Kiesow/sine/
-rwxr--r-- 1 audiobookshelf audiobookshelf 1.9M Jan 22 12:09 sine.m4a

Audiobookshelf should not set the executable flag for files it creates.

Audiobookshelf version

v2.2.12

How are you running audiobookshelf?

Debian/PPA

Originally created by @lkiesow on GitHub (Jan 22, 2023). ### Describe the issue Uploading an audio file via the user interface will cause this file to be put on the file system marked as an executable: ``` # ls -lh --color /data/audiobooks/Lars\ Kiesow/sine/ -rwxr--r-- 1 audiobookshelf audiobookshelf 1.9M Jan 22 12:09 sine.m4a ``` Audiobookshelf should not set the executable flag for files it creates. ### Audiobookshelf version v2.2.12 ### How are you running audiobookshelf? Debian/PPA
adam added the bug label 2026-04-24 23:25:39 +02:00
adam closed this issue 2026-04-24 23:25:40 +02:00
Author
Owner

@advplyr commented on GitHub (Jan 22, 2023):

Agree. That is happening here https://github.com/advplyr/audiobookshelf/blob/master/server/utils/filePerms.js#L90

When the UID/GID is phased out then this won't happen anymore.

@advplyr commented on GitHub (Jan 22, 2023): Agree. That is happening here https://github.com/advplyr/audiobookshelf/blob/master/server/utils/filePerms.js#L90 When the UID/GID is phased out then this won't happen anymore.
Author
Owner

@advplyr commented on GitHub (Feb 1, 2023):

Fixed in v2.2.13 with removal of UID/GID env vars

@advplyr commented on GitHub (Feb 1, 2023): Fixed in [v2.2.13](https://github.com/advplyr/audiobookshelf/releases/tag/v2.2.13) with removal of UID/GID env vars
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#905