roflcoopter / viseron

Self-hosted, local only NVR and AI Computer Vision software. With features such as object detection, motion detection, face recognition and more, it gives you the power to keep an eye on your home, office or any other place you want to monitor.
MIT License
1.51k stars 155 forks source link

file permission setting for recording folders and files #702

Closed ceewanna closed 5 months ago

ceewanna commented 5 months ago

There is -e PUID=1000 -e PGID=1000 for setting user and group id. However, what would be the proper approach for handling file permission for recording folders and files, something like umask. Should we just set it via chmod command? Would it be overwritten when docker run is executed?

ceewanna commented 5 months ago

I guess that is not necessary now. I could get things done via acl. Sorry for asking such nonsense.

roflcoopter commented 5 months ago

The docker container changes the permission of the folders to be owned by the running in PUID and group in PGID, umask is not being used