How to setup another storage for camera?
Posted: Sun Oct 27, 2024 2:17 am
I have only one camera.
Default storage is for the events /var/cache/zoneminder/events. I want to change it to /mnt/storage, which is additional disk. The same directory I want to share via smb. Sharing via smb works with various combinations of ownershi and priviledges (775, 777, root:root, www-data:www-data) but i cannot manage zoneminder to use this storage - I've tried to add second one and switch camera storage the added one, and edit directory of default storage; in both cases I've rebooted machine and ...nothings changed.
What should I set up?
In zmc_m1.log i can see:
10/27/24 02:43:07.148749 zmc_m1[1072].ERR-zm_event.cpp/555 [Can't mkdir /mnt/storage/1: Permission denied]
(and similar)
But - why?
# ls -l /mnt/
total 4
drwxrwxrwx 3 www-data www-data 4096 Oct 27 03:05 storage
Default storage is for the events /var/cache/zoneminder/events. I want to change it to /mnt/storage, which is additional disk. The same directory I want to share via smb. Sharing via smb works with various combinations of ownershi and priviledges (775, 777, root:root, www-data:www-data) but i cannot manage zoneminder to use this storage - I've tried to add second one and switch camera storage the added one, and edit directory of default storage; in both cases I've rebooted machine and ...nothings changed.
What should I set up?
In zmc_m1.log i can see:
10/27/24 02:43:07.148749 zmc_m1[1072].ERR-zm_event.cpp/555 [Can't mkdir /mnt/storage/1: Permission denied]
(and similar)
But - why?
# ls -l /mnt/
total 4
drwxrwxrwx 3 www-data www-data 4096 Oct 27 03:05 storage