Page 1 of 1
/dev/video0 device permission problem
Posted: Sun Aug 19, 2007 11:15 pm
by rrk
zm does not have permission to use /dev/video0
from the system log
zmdc log shows video0 crashing on a regular basis
current ownership of /dev/video0 is root and video
i have added www-data to the video group zmuser is not a system user should it be?
zm 1.23 from debian pkg
rob
Posted: Sun Aug 19, 2007 11:47 pm
by rrk
which user from with in zmc is accessing /dev/video0
making zmuser a system user does not fix the problem
rob
Posted: Mon Aug 20, 2007 5:41 am
by PeterHoward
The permissions aren't as obvious as you'd think . . there's a program /usr/bin/zmfix which should get the perms right (when run as root). Alternately the brute-force "sudo chmod 777 /dev/video0" will get things working
Posted: Mon Aug 20, 2007 6:40 am
by rrk
thanks that worked I was trying to avoid the 777 club/stick
Posted: Tue Aug 21, 2007 3:19 am
by Lee Sharp
Then suid the zm-fix xcript.
Posted: Tue May 13, 2008 5:07 pm
by jorloujr
Me too am facing the same problem, brute force chmod 666/dev/video0 does works, but zmfix do not ...
Any hints ?
I,m on Ubuntu 8.04, ZM installed from Synaptic.
Posted: Tue May 13, 2008 10:44 pm
by PeterHoward
jorloujr wrote:Me too am facing the same problem, brute force chmod 666/dev/video0 does works, but zmfix do not ...
Any hints ?
I,m on Ubuntu 8.04, ZM installed from Synaptic.
zmfix needs to be run with root permissions to change things. So you either do Lee's trick of suid-ing the script, or you run "sudo zmfix".
PJH
Posted: Thu May 15, 2008 10:55 pm
by jorloujr
PeterHoward wrote:zmfix needs to be run with root permissions ...
Thanks Peter !
I found
http://www.zoneminder.com/wiki/index.php/Ubuntu_7.04
and
sudo chmod 4755 /usr/bin/zmfix
worked fine. Silly me ...