Bug Report
What happened?
I am running leafwiki as a systemd service and as user root. All of the files created by leafwiki have read permissions for everyone, except files in the assets folder those only have read access for the service user (root). See log at the bottom.
Version
v0.10.2
Platform
raspberry pi 2 (arm7)
Steps to reproduce
- Run leafwiki as systemd service root user
- Upload a file
- Check permissions of files in assets/
Expected behavior
Consistent user/group file permissions.
Screenshots / recording
dietpi@DietPi:~/leafwiki-app/data$ cd assets/
dietpi@DietPi:~/leafwiki-app/data/assets$ ls -l
total 16
drwxr-xr-x 2 root root 4096 Jun 12 13:21 AGcDnkZRR
drwxr-xr-x 2 root root 4096 Jun 12 13:22 JMOj7kWgR
drwxr-xr-x 2 root root 4096 Jun 12 13:23 Ply3nzWgR
drwxr-xr-x 2 root root 4096 Jun 12 13:08 v6KM7zZRg
dietpi@DietPi:~/leafwiki-app/data/assets$ cd ..
dietpi@DietPi:~/leafwiki-app/data$ ls
assets links.db root search.db tags.db
branding properties.db schema.json sessions.db users.db
dietpi@DietPi:~/leafwiki-app/data$ cd root/
dietpi@DietPi:~/leafwiki-app/data/root$ ls -l
total 8
drwxr-xr-x 4 root root 4096 Jun 12 13:26 devices
drwxr-xr-x 3 root root 4096 Jun 10 19:58 reference
dietpi@DietPi:~/leafwiki-app/data/root$ cd ..
dietpi@DietPi:~/leafwiki-app/data$ cd assets/
dietpi@DietPi:~/leafwiki-app/data/assets$ ls
AGcDnkZRR JMOj7kWgR Ply3nzWgR v6KM7zZRg
dietpi@DietPi:~/leafwiki-app/data/assets$ cd AGcDnkZRR/
dietpi@DietPi:~/leafwiki-app/data/assets/AGcDnkZRR$ ls -l
total 60
-rw------- 1 root root 25838 Jun 12 13:21 image-1.png
-rw------- 1 root root 31904 Jun 12 13:20 image.png
Bug Report
What happened?
I am running leafwiki as a systemd service and as user root. All of the files created by leafwiki have read permissions for everyone, except files in the assets folder those only have read access for the service user (root). See log at the bottom.
Version
v0.10.2
Platform
raspberry pi 2 (arm7)
Steps to reproduce
Expected behavior
Consistent user/group file permissions.
Screenshots / recording