[GH-ISSUE #73] Permissions are not applied to PDF output #51

Closed
opened 2026-03-01 14:40:09 +03:00 by kerem · 1 comment
Owner

Originally created by @cdzombak on GitHub (Mar 14, 2018).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/73

I'm running archiver.py without passing ARCHIVE_PERMISSIONS, which should result in permissions of 755per the README.

This seems to work as expected except for the PDFs in the output. They appear to be created with permissions 600. Here's an example listing from my archive:

$ ls -l html/archive/1520809520
total 480
-rwxr-xr-x  1 cdzombak  staff   492B Mar 13 20:35 favicon.ico*
-rwxr-xr-x  1 cdzombak  staff    11K Mar 13 22:00 index.html*
-rwxr-xr-x  1 cdzombak  staff   3.5K Mar 13 22:00 index.json*
-rw-------@ 1 cdzombak  staff    70K Mar 13 20:35 output.pdf
-rwxr-xr-x@ 1 cdzombak  staff   144K Mar 13 20:35 screenshot.png*
drwxr-xr-x  3 cdzombak  staff    96B Mar 13 20:35 www.proporti.onl/

As a workaround, the script I'm running via cron runs archive.py then:

find /path/to/bookmark-archiver/html -name "*.pdf" -exec chmod 755 {} \;
Originally created by @cdzombak on GitHub (Mar 14, 2018). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/73 I'm running `archiver.py` without passing `ARCHIVE_PERMISSIONS`, which _should_ result in permissions of `755`per [the README](https://github.com/pirate/bookmark-archiver#configuration). This seems to work as expected _except_ for the PDFs in the output. They appear to be created with permissions `600`. Here's an example listing from my archive: ``` $ ls -l html/archive/1520809520 total 480 -rwxr-xr-x 1 cdzombak staff 492B Mar 13 20:35 favicon.ico* -rwxr-xr-x 1 cdzombak staff 11K Mar 13 22:00 index.html* -rwxr-xr-x 1 cdzombak staff 3.5K Mar 13 22:00 index.json* -rw-------@ 1 cdzombak staff 70K Mar 13 20:35 output.pdf -rwxr-xr-x@ 1 cdzombak staff 144K Mar 13 20:35 screenshot.png* drwxr-xr-x 3 cdzombak staff 96B Mar 13 20:35 www.proporti.onl/ ``` As a workaround, the script I'm running via cron runs `archive.py` then: ```sh find /path/to/bookmark-archiver/html -name "*.pdf" -exec chmod 755 {} \; ```
kerem closed this issue 2026-03-01 14:40:10 +03:00
Author
Owner

@pirate commented on GitHub (Mar 15, 2018):

Good catch, fixed in dc9445b.

<!-- gh-comment-id:373215594 --> @pirate commented on GitHub (Mar 15, 2018): Good catch, fixed in dc9445b.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#51
No description provided.