GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.35k stars 419 forks source link

[Bug]: Linux/NixOS issues with file-permissions of new created project #1322

Open SebTM opened 9 months ago

SebTM commented 9 months ago

Operating system

NixOS Unstable

Publii version

0.44.4

Post editor

WYSIWYG editor

Bug description

After opening Publii for the first time and creating an test-project which works I get the following error when trying to preview:

Rendering process failed
An error occurred during rendering process:

EACCES: permission denied, open '/home/xxx/Documents/Publii/sites/test/input/themes/simple/assets/css/style.css'

on further inspection I found out that a couple of files are created with "r-xr-xr-x" instead of at least "rwxr-xr-x" from my expectation?

Is this expected/can this be solved or did I miss something when packaging Publii for NixOS? Appreachiate your input ✌🏻

Steps to reproduce

No response

Relevant log output

No response

SebTM commented 9 months ago
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/404.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/css/editor.css': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/css/main.css': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/css/photoswipe.css': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/css/style.css': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/adventpro/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/adventpro/adventpro.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/aleo/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/aleo/aleo.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/andadapro/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/andadapro/andadapro.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/antonio/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/antonio/antonio.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/archivonarrow/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/archivonarrow/archivonarrow.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/asap/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/asap/asap.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/assistant/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/assistant/assistant.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/besley/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/besley/besley.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/bigshouldersdisplay/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/bigshouldersdisplay/bigshouldersdisplay.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/bitter/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/bitter/bitter.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/brygada1918/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/brygada1918/brygada1918.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/cabin/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/cabin/cabin.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/cairo/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/cairo/cairo.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/comfortaa/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/comfortaa/comfortaa.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/dancingscript/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/dancingscript/dancingscript.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/domine/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/domine/domine.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/dosis/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/dosis/dosis.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/exo/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/exo/exo.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/faustina/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/faustina/faustina.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/figtree/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/figtree/figtree.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/frankruhllibre/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/frankruhllibre/frankruhllibre.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/glory/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/glory/glory.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/gluten/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/gluten/gluten.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/heebo/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/heebo/heebo.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/imbue/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/imbue/imbue.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/instrumentsans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/instrumentsans/instrumentsans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/jetbrainsmono/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/jetbrainsmono/jetbrainsmono.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/jura/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/jura/jura.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/karla/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/karla/karla.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/kreon/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/kreon/kreon.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/labrada/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/labrada/labrada.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/lemonada/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/lemonada/lemonada.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/lexend/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/lexend/lexend.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/librefranklin/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/librefranklin/librefranklin.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/lora/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/lora/lora.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/manrope/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/manrope/manrope.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/manuale/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/manuale/manuale.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/mavenpro/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/mavenpro/mavenpro.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/merriweathersans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/merriweathersans/merriweathersans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/montserrat/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/montserrat/montserrat.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/nunito/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/nunito/nunito.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/orbitron/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/orbitron/orbitron.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/oswald/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/oswald/oswald.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/petrona/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/petrona/petrona.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/playfairdisplay/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/playfairdisplay/playfairdisplay.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/plusjakartasans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/plusjakartasans/plusjakartasans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/publicsans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/publicsans/publicsans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/quicksand/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/quicksand/quicksand.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/raleway/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/raleway/raleway.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/redhatdisplay/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/redhatdisplay/redhatdisplay.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/redhatmono/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/redhatmono/redhatmono.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/robotoflex/LICENSE.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/robotoflex/robotoflex.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/robotoslab/LICENSE.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/robotoslab/robotoslab.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/rokkitt/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/rokkitt/rokkitt.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/rubik/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/rubik/rubik.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/ruda/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/ruda/ruda.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/smoochsans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/smoochsans/smoochsans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/sourcecodepro/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/sourcecodepro/sourcecodepro.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/spartan/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/spartan/spartan.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/urbanist/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/urbanist/urbanist.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/worksans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/worksans/worksans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/yanonekaffeesatz/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/yanonekaffeesatz/yanonekaffeesatz.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/yrsa/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/dynamic/fonts/yrsa/yrsa.woff2': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/js/photoswipe-ui-default.min.js': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/js/photoswipe.min.js': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/js/scripts.js': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/js/scripts.min.js': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/js/svg-fix.js': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/js/svg-map.js': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/svg/gallery-icons-dark.svg': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/svg/gallery-icons-light.svg': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/assets/svg/svg-map.svg': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/author.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/config.json': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/dynamic-assets-mapping.js': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/index.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/partials/fonts.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/partials/footer.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/partials/frontpage-post.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/partials/head.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/partials/menu.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/partials/pagination.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/partials/photoswipe.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/partials/share-buttons.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/partials/top.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/post.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/search.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/simple.lang.json': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/tag.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/tags.hbs': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/theme-variables.js': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/thumbnail.png': Permission denied
rm: cannot remove 'Documents/Publii/sites/test/input/themes/simple/visual-override.js': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/404.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/css/editor.css': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/css/main.css': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/css/photoswipe.css': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/css/style.css': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/adventpro/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/adventpro/adventpro.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/aleo/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/aleo/aleo.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/andadapro/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/andadapro/andadapro.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/antonio/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/antonio/antonio.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/archivonarrow/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/archivonarrow/archivonarrow.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/asap/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/asap/asap.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/assistant/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/assistant/assistant.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/besley/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/besley/besley.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/bigshouldersdisplay/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/bigshouldersdisplay/bigshouldersdisplay.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/bitter/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/bitter/bitter.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/brygada1918/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/brygada1918/brygada1918.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/cabin/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/cabin/cabin.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/cairo/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/cairo/cairo.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/comfortaa/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/comfortaa/comfortaa.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/dancingscript/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/dancingscript/dancingscript.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/domine/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/domine/domine.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/dosis/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/dosis/dosis.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/exo/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/exo/exo.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/faustina/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/faustina/faustina.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/figtree/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/figtree/figtree.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/frankruhllibre/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/frankruhllibre/frankruhllibre.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/glory/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/glory/glory.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/gluten/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/gluten/gluten.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/heebo/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/heebo/heebo.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/imbue/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/imbue/imbue.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/instrumentsans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/instrumentsans/instrumentsans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/jetbrainsmono/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/jetbrainsmono/jetbrainsmono.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/jura/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/jura/jura.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/karla/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/karla/karla.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/kreon/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/kreon/kreon.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/labrada/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/labrada/labrada.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/lemonada/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/lemonada/lemonada.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/lexend/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/lexend/lexend.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/librefranklin/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/librefranklin/librefranklin.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/lora/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/lora/lora.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/manrope/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/manrope/manrope.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/manuale/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/manuale/manuale.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/mavenpro/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/mavenpro/mavenpro.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/merriweathersans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/merriweathersans/merriweathersans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/montserrat/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/montserrat/montserrat.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/nunito/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/nunito/nunito.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/orbitron/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/orbitron/orbitron.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/oswald/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/oswald/oswald.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/petrona/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/petrona/petrona.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/playfairdisplay/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/playfairdisplay/playfairdisplay.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/plusjakartasans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/plusjakartasans/plusjakartasans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/publicsans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/publicsans/publicsans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/quicksand/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/quicksand/quicksand.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/raleway/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/raleway/raleway.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/redhatdisplay/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/redhatdisplay/redhatdisplay.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/redhatmono/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/redhatmono/redhatmono.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/robotoflex/LICENSE.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/robotoflex/robotoflex.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/robotoslab/LICENSE.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/robotoslab/robotoslab.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/rokkitt/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/rokkitt/rokkitt.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/rubik/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/rubik/rubik.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/ruda/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/ruda/ruda.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/smoochsans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/smoochsans/smoochsans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/sourcecodepro/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/sourcecodepro/sourcecodepro.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/spartan/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/spartan/spartan.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/urbanist/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/urbanist/urbanist.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/worksans/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/worksans/worksans.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/yanonekaffeesatz/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/yanonekaffeesatz/yanonekaffeesatz.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/yrsa/OFL.txt': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/dynamic/fonts/yrsa/yrsa.woff2': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/js/photoswipe-ui-default.min.js': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/js/photoswipe.min.js': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/js/scripts.js': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/js/scripts.min.js': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/js/svg-fix.js': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/js/svg-map.js': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/svg/gallery-icons-dark.svg': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/svg/gallery-icons-light.svg': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/assets/svg/svg-map.svg': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/author.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/config.json': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/dynamic-assets-mapping.js': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/index.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/partials/fonts.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/partials/footer.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/partials/frontpage-post.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/partials/head.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/partials/menu.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/partials/pagination.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/partials/photoswipe.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/partials/share-buttons.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/partials/top.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/post.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/search.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/simple.lang.json': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/tag.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/tags.hbs': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/theme-variables.js': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/thumbnail.png': Permission denied
rm: cannot remove 'Documents/Publii/themes/simple/visual-override.js': Permission denied
HowToMeetLadies commented 9 months ago

I would like to add my two cents here.

To be able to delete files, by default you only need "-wx" in the parent directory and no rights or ownership of the file itself. I skimmed through the source code and couldn't find anything. The mode parameter for writeFile is not set and chmod is not used either. The umask is left unchanged. So the default should apply: (0777 & ~umask) and (0666 & ~umask).

How is your umask set? Could it be that your umask was set to 0222 instead of 0022?

Which command line is used to start Publii?

If Publii's developers worked around the problem, it would only lead to further complications. The problem can certainly be worked around with setfacl, but it won't fix the cause..

SebTM commented 9 months ago

How is your umask set? Could it be that your umask was set to 0222 instead of 0022?

I didn't ever change/touch the umask - my default is:

❯ umask
022

I can create a wrapper and set the correct umask/use setfacl before starting Publii, do you have a suggestion on what to set/which value?

Which command line is used to start Publii? "Publii" in terminal or via desktop-file

"Publii" in the NixOS-case is a binary-wrapper providing dependencies and starting the original Publii binary.

If Publii's developers worked around the problem, it would only lead to further complications.

I see, I'm totally open to fix it in our packaging if it's not an issue on any other platform :)

HowToMeetLadies commented 9 months ago

I didn't ever change/touch the umask - my default is:

A process's umask is inherited by its child processes. So either there is another process in between or the permissions are changed somewhere else after they have been created correctly (wrapper, createHome/homeMode, setfacl, tmpfiles, ).

What umask is output by /proc/$pid/status? Please also check the parent processes (ps xf).

I can create a wrapper and set the correct umask/use setfacl before starting Publii, do you have a suggestion on what to set/which value?

You can set a default value with setfacl -d -m u::rwx,g::r-x,o::r-x <parent directory>. The default value will be inherited. Use setfacl -R -m u::rwx,g::r-x,o::r-x <parent directory> to update existing files/folders.

HowToMeetLadies commented 9 months ago

Hello @SebTM, have you had success yet? Is everything working now? 🤔

SebTM commented 9 months ago

Hey, sorry somehow it got lost on my to-do list ✌🏻

I got the output of ps xf while running Publii:

    PID TTY      STAT   TIME COMMAND
   2918 tty2     Ssl+   0:00 /nix/store/smbrrbrhvpa1fw8mfc6dlhc2ghz9bc6n-gdm-45.0.1/libexec/gdm-wayland-session /nix/store/kz44cjdgp0fi8b773kkynmqn284bz01i-gnome-session-45.0/bin/gnome-s
   2931 tty2     Sl+    0:00  \_ /nix/store/kz44cjdgp0fi8b773kkynmqn284bz01i-gnome-session-45.0/libexec/gnome-session-binary
   2912 ?        SLl    0:00 /nix/store/lxxfc2nrg3j9yj43ndfnqqd6a0ajkfb8-gnome-keyring-42.1/bin/gnome-keyring-daemon --daemonize --login
   2890 ?        Ss     0:00 /run/current-system/systemd/lib/systemd/systemd --user --deserialize=26
   2894 ?        S      0:00  \_ (sd-pam)
   2902 ?        Ss     0:00  \_ /nix/store/vl5zykxl49zan3dkq8yhqfinyxg30lhh-dbus-1.14.10/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation --syslog-
   2971 ?        Ssl    0:00  \_ /nix/store/fpfc0bpga9visp408l7jsvg37kxj2y75-gnome-session-ctl-42.0/libexec/gnome-session-ctl --monitor
   2976 ?        Ssl    0:00  \_ /nix/store/kz44cjdgp0fi8b773kkynmqn284bz01i-gnome-session-45.0/libexec/gnome-session-binary --systemd-service --session=gnome
   3193 ?        Sl     0:00  |   \_ /nix/store/b72n9jbqx1mbwxz8h8zqlp094q31ifam-gnome-disk-utility-45.1/libexec/gsd-disk-utility-notify
   3004 ?        Ssl    1:31  \_ /nix/store/aqjspdaxc3iq935hqzhlnsyapi3j9w01-gnome-shell-45.3/bin/gnome-shell
   3384 ?        Sl     0:07  |   \_ /nix/store/8qqlr0mx6ppnpagdzp0g1cfs3f33yvvq-xwayland-23.2.4/bin/Xwayland :0 -rootless -noreset -accessx -core -auth /run/user/1000/.mutter-Xwaylandau
   3485 ?        Sl     0:01  |   \_ /nix/store/527i5dnqhgkh3dd0xvx6w8qr424vzqsb-mutter-45.3/libexec/mutter-x11-frames
   9341 ?        Sl     0:03  |   \_ /nix/store/XXXX
   9347 ?        S      0:00  |   |   \_ /nix/store/XXXX --type=zygote --no-zygote-sandbox
   9399 ?        Sl     0:01  |   |   |   \_ /nix/store/XXXX --type=gpu-process --enable-crash-reporter=cd3a17f0-5
   9348 ?        S      0:00  |   |   \_ /nix/store/XXXX --type=zygote
   9352 ?        S      0:00  |   |   |   \_ /nix/store/XXXX --type=zygote
  10587 ?        Sl     0:00  |   |   |       \_ /nix/store/XXXX --type=renderer --enable-crash-reporter=cd3a17f0-
   9401 ?        Sl     0:00  |   |   \_ /nix/store/XXXX --type=utility --utility-sub-type=network.mojom.NetworkSe
  14369 ?        Sl     0:00  |   \_ /etc/profiles/per-user/sebtm/bin/alacritty
  14388 pts/1    Ss     0:00  |   |   \_ /run/current-system/sw/bin/zsh
  15162 pts/1    R+     0:00  |   |       \_ ps xf
  15009 ?        Sl     0:01  |   \_ /nix/store/21j8af4h4p96nyc44qbq7f44n6pbiagk-publii-0.44.4/opt/Publii/Publii
  15015 ?        S      0:00  |       \_ /nix/store/21j8af4h4p96nyc44qbq7f44n6pbiagk-publii-0.44.4/opt/Publii/Publii --type=zygote --no-zygote-sandbox
  15080 ?        Sl     0:00  |       |   \_ /nix/store/21j8af4h4p96nyc44qbq7f44n6pbiagk-publii-0.44.4/opt/Publii/Publii --type=gpu-process --enable-crash-reporter=819b5b3e-a5be-4699-9f9
  15016 ?        S      0:00  |       \_ /nix/store/21j8af4h4p96nyc44qbq7f44n6pbiagk-publii-0.44.4/opt/Publii/Publii --type=zygote
  15018 ?        S      0:00  |       |   \_ /nix/store/21j8af4h4p96nyc44qbq7f44n6pbiagk-publii-0.44.4/opt/Publii/Publii --type=zygote
  15057 ?        Sl     0:01  |       |       \_ /nix/store/21j8af4h4p96nyc44qbq7f44n6pbiagk-publii-0.44.4/opt/Publii/Publii --type=renderer --enable-crash-reporter=819b5b3e-a5be-4699-9f
  15053 ?        Sl     0:00  |       \_ /nix/store/21j8af4h4p96nyc44qbq7f44n6pbiagk-publii-0.44.4/opt/Publii/Publii --type=utility --utility-sub-type=network.mojom.NetworkService --lang
...

Publii is under "/run/current-system/systemd/lib/systemd/systemd --user --deserialize=26" -> "/nix/store/aqjspdaxc3iq935hqzhlnsyapi3j9w01-gnome-shell-45.3/bin/gnome-shell".

cat /proc/3004/status
Name:   .gnome-shell-wr
Umask:  0022

cat /proc/2890/status
Name:   systemd
Umask:  0022

The result of the relevant pids:

cat /proc/15009/status
Name:   Publii
Umask:  0022

cat /proc/15015/status
Name:   Publii
Umask:  0022

cat /proc/15080/status
Name:   Publii
Umask:  0022

cat /proc/15016/status
Name:   Publii
Umask:  0022

cat /proc/15018/status
Name:   Publii
Umask:  0022

cat /proc/15057/status
Name:   Publii
Umask:  0022

cat /proc/15057/status
Name:   Publii
Umask:  0022

I can't find the place where the umask is changed?

SebTM commented 9 months ago

I couldn't figure out so far why this is happening/where the umask got changed, but the setfacl -R -m u::rwx,g::r-x,o::r-x after publii created the project works.

I wold leave it open for further input/others having the same issues.

HowToMeetLadies commented 9 months ago

No problem and I'm glad to hear that Publii is now running. Please note that both setfacl commands have to be issued. One for future files (-d) and the other for existing ones. ;-)

It's just a workaround and if you would like to research a little further:

The file system also plays a role, I would check that too. For example, look at /proc/mounts to see whether umask, fmask or dmask parameters were assigned there.

Then the next step would be to monitor file access. sysdig -p '%proc.name %evt.type %evt.args' evt.args contains /parent/directory

SebTM commented 9 months ago

The file system also plays a role, I would check that too. For example, look at /proc/mounts to see whether umask, fmask or dmask parameters were assigned there.

/dev/mapper/XXXX /home/sebtm/Documents btrfs rw,noatime,compress=zstd:3,ssd,space_cache=v2,subvolid=XXX,subvol=/xxx 0 0

This should be the relevant mount entry as the directory is created in "/home/sebtm/Documents/Publii".

Will check sysdig soon, need to reboot to get it working ✌🏻

SebTM commented 9 months ago

sysdig-publii.log Attached the sysdig-log, let me know if if you can spot something ✌🏻

HowToMeetLadies commented 9 months ago

There is nothing unusual in the attached file - all calls are made with the correct modes and only from Publii. It would be interesting to see a log when the error occurs.

Please also paste the output of getfacl -R / and getfacl -R --skip-base /

SebTM commented 9 months ago

Hey, I ran the sysdig (with completely reset .dotfiles for Publii) again and ensured to try to preview multiple times which causes the issue sysdig2.log

The error-message in Publii:

Rendering process failed
An error occurred during rendering process:

EACCES: permission denied, open '/home/sebtm/Documents/Publii/sites/test/input/themes/simple/assets/css/style.css'

Please also paste the output of getfacl -R / and getfacl -R --skip-base /

I don't have a general issue with sharing it but as it exposes my whole filesystem and files I would prefer to share a specific part or not publicly if possible? :v: