I had to reinstall my Ubuntu machine and am trying to get back where I was with zm.
I had
"Failed to open video device /dev/video0: Permission denied"
I had already done usual set owner and permissions and also have a rule in /ect/udev/rules.d containing.
SUBSYSTEM=="video4linux", ACTION=="add", RUN+="/bin/chmod 644 /dev/$name"
ls -l for video0 gave.
crw-rw-r--+ 1 root video 81, 0 Sep 30 09:43 video0
Which I think was how it should be and was in the previous setup.
However, permission denied

crw-rw-r--+ 1 www-data video 81, 0 Sep 30 09:43 video0
The question is - have I configured something else incorrectly to warrant this change in owner for /dev/video0 and there is a lurking issue elsewhere?
If so please can you point me in the right direction.
Thanks