CIFS-Share mounted in Ubuntu: Can't symlink - Can't chown ("Permission denied")
Posted: Thu Mar 24, 2016 12:38 pm
Hi!
I am new to Zoneminder. Before I used Synology Surveillance Station, but with 3+ Foscams the NAS is being brought to it's limits.
So I created a Ubunto vm and now I want to store my ZM recordings on my Synology NAS (ds212+).
Mounted a CIFS-Share to my Ubuntu-Zoneminder-VM with the following fstab-entry:
www-data has uid 33 / gid 33.
ll /media/zm shows:
Mounted events and images dirs like so:
I can mount and access the share just fine, however Zoneminder says: "Can't symlink events/5/16/03/23/.774 -> events/5/16/03/23/12/21/16: Permission denied". I have read, that to solve this, one has to change the owner of those folders to the apache user "www-data", however when I try to
on the Ubuntu system, I too get "Permission denied".
Also, this might help:
Any help?
Thanks!
I am new to Zoneminder. Before I used Synology Surveillance Station, but with 3+ Foscams the NAS is being brought to it's limits.
So I created a Ubunto vm and now I want to store my ZM recordings on my Synology NAS (ds212+).
Mounted a CIFS-Share to my Ubuntu-Zoneminder-VM with the following fstab-entry:
Code: Select all
//192.168.2.101/sec/zm /media/zm cifs sec=ntlmv2,credentials=/home/user/.smbcredentials,iocharset=utf8,noperm,auto,dev,rw,exec,suid,async,_netdev,dir_mode=0777,file_mode=0777,uid=33,gid=33 0 0
ll /media/zm shows:
Code: Select all
drwxrwxrwx 5 www-data www-data 0 Mar 22 15:35 ./
drwxr-xr-x 4 root root 4096 Mar 22 15:26 ../
drwxrwxrwx 5 www-data www-data 0 Mar 23 13:34 events/
drwxrwxrwx 2 www-data www-data 0 Mar 24 09:42 images/
drwxrwxrwx 2 www-data www-data 0 Mar 22 15:35 temp/
Code: Select all
/media/zm/images /var/cache/zoneminder/images none defaults,bind 0 2
/media/zm/events /var/cache/zoneminder/events none defaults,bind 0 2
Code: Select all
chown www-data:www-data /media/zm/events
Also, this might help:
Code: Select all
user@[system]:~$ ps -ef | grep zoneminder
www-data 1699 1534 3 13:26 ? 00:00:21 /usr/lib/zoneminder/cgi-bin/nph-zms
www-data 1712 1514 2 13:26 ? 00:00:16 /usr/lib/zoneminder/cgi-bin/nph-zms
www-data 1713 1532 2 13:26 ? 00:00:16 /usr/lib/zoneminder/cgi-bin/nph-zms
user 2120 1696 0 13:37 pts/0 00:00:00 grep --color=auto zoneminder
Thanks!