PinePods icon indicating copy to clipboard operation
PinePods copied to clipboard

Setting permissions for download and backup directories

Open DragonHeart69 opened this issue 3 months ago • 1 comments

I just start the nightly version this morning, and i run in permission problems.

If i mount a local folder, the container start normal & i mounted the nfs share also to a other map. Then i can create folders & files inside the container

      - ./podcasts:/opt/pinepods/downloads
      - /media/mount/nas/muziek/podcasts:/opt/pinepods/podcasts
$ docker exec -it pinepods sh
/ # cd /opt/pinepods/podcasts/
/opt/pinepods/podcasts # ls
22 Minuten Stomme Vragen
/opt/pinepods/podcasts # mkdir test
/opt/pinepods/podcasts # cd test/
/opt/pinepods/podcasts/test # touch test.txt
/opt/pinepods/podcasts/test # ls -l
total 1
-rw-rw-r--    1 nobody   nobody           0 Sep  3 18:45 test.txt

If i mount the nfs share to the download folder, the container won't start. - /media/mount/nas/muziek/podcasts:/opt/pinepods/downloads

Setting permissions for download and backup directories...(Be patient this might take a while if you have a lot of downloads)
chown: /opt/pinepods/downloads/22 Minuten Stomme Vragen/2025-08-29_Maaike Cafmeyer_2_1.mp3: Operation not permitted
chown: /opt/pinepods/downloads/22 Minuten Stomme Vragen: Operation not permitted
chown: /opt/pinepods/downloads/22 Minuten Stomme Vragen: Operation not permitted
chown: /opt/pinepods/downloads/test/test.txt: Operation not permitted
chown: /opt/pinepods/downloads/test: Operation not permitted
chown: /opt/pinepods/downloads/test: Operation not permitted
chown: /opt/pinepods/downloads: Operation not permitted
chown: /opt/pinepods/downloads: Operation not permitted

Some other containers have the same problem, but boot normal & can use the share folder

DragonHeart69 avatar Sep 03 '25 16:09 DragonHeart69

This seems like root squashing maybe if it's permission of nobody? On boot Pinepods is trying to set permission of the user the container is started with for the files so that it can read and edit them. We could perhaps just not do that and assume the files are readable. That's maybe the better approach. I'll play with removing that option

madeofpendletonwool avatar Sep 06 '25 20:09 madeofpendletonwool