Hello all, I am after a little bit of help with the events directory in zoneminder.
I have got a samba share mounted in /links/cctv with read write permissions for every user (tested my main user and www-data) I have then created a symlink in the events dir:
sudo ln -s /links/cctv /usr/share/zoneminder/events/cctv
but when zoneminder tries to record the video im geting the error:
Oct 24 08:52:16 server-cctv zma_m1[20839]: FAT [Can't symlink events/cctv/1/11/10/24/.4032 -> events/cctv/1/11/10/24/08/52/15: Permission denied]
Does anyone have any ideas?
here are the permissions:
ls -la /links (group 1002 is a group on my nas drive called nasuser)
drwxr-x--- 2 localuser 1002 0 2011-10-23 21:25 cctv
ls -la /links/cctv /usr/share/zoneminder/events/ (looks like the link has 777 permissions on it)
lrwxrwxrwx 1 root root 11 2011-10-23 21:29 cctv -> /links/cctv
Events Directory
Re: Events Directory
Ok so I worked this one out.
The issue was that the user 'www-data' which ZM uses when saving images couldnt access the share I needed to remount the share changing the user and/or group to www-data or a group www-data had access to.
like:
//192.168.1.99/cctv /links/cctv cifs iocharset=utf8,credentials=/links/.smbcredentials,uid=33,gid=33,_netdev 0 0
where 33 = www-data
The issue was that the user 'www-data' which ZM uses when saving images couldnt access the share I needed to remount the share changing the user and/or group to www-data or a group www-data had access to.
like:
//192.168.1.99/cctv /links/cctv cifs iocharset=utf8,credentials=/links/.smbcredentials,uid=33,gid=33,_netdev 0 0
where 33 = www-data