Page 1 of 1

[SOLVED] - No Video = Can't chmod /dev/video0 to 20666

Posted: Sun Jul 03, 2011 10:53 am
by JakFrost
Tried ZoneMinder today for the first time, wouldn't work, tried a lot of things trying to make it work. Found this error in /var/log/syslog then issued the fix command below.

I think there's an error in zmfix trying to chmod to "20666" instead of "2666".
Jul 3 02:08:26 XBMCLive zmfix 18060: ERR Can't chmod /dev/video0 to 20666: Operation not permitted

Code: Select all

chmod 2666 /dev/video0
Here is what the device setup looked like before.

Code: Select all


# ll /dev/video0
crw-rw---- 1 root video 81, 0 2011-07-03 05:29 video0

# chmod 2666 /dev/video0

# ll /dev/video0
crw-rwSrw- 1 root video 81, 0 2011-07-03 05:29 /dev/video0

Re: [SOLVED] - No Video = Can't chmod /dev/video0 to 20666

Posted: Sun Jul 03, 2011 11:24 am
by mastertheknife

Code: Select all

gpasswd -a video apache
or

Code: Select all

gpasswd -a video www-data
Should also work.

mastertheknife

Re: [SOLVED] - No Video = Can't chmod /dev/video0 to 20666

Posted: Tue Jul 05, 2011 5:29 pm
by JakFrost
Thank you for the better suggestion, your solution solves the permissions problem for all /dev/video* devices, not just /dev/video0. (But you got your syntax reversed, it's add "user" to "group".)

Add the user running the Apache Web service to Video group to access /dev/video* resources.

Code: Select all

# gpasswd -a www-data video

or

# gpasswd -a apache video
Check group membership of user running the Apache Web service.

Code: Select all

# groups www-data
www-data : www-data video

or

# groups apache
apache : apache video

Re: [SOLVED] - No Video = Can't chmod /dev/video0 to 20666

Posted: Tue Jul 05, 2011 6:44 pm
by JakFrost
Added Ubuntu Bug report 806117 to update the Zoneminder package to get this fixed.