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

Forum for questions and support relating to the 1.24.x releases only.
Locked
JakFrost
Posts: 5
Joined: Sun Jul 03, 2011 10:41 am

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

Post 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
mastertheknife
Posts: 678
Joined: Wed Dec 16, 2009 4:32 pm
Location: Israel

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

Post by mastertheknife »

Code: Select all

gpasswd -a video apache
or

Code: Select all

gpasswd -a video www-data
Should also work.

mastertheknife
Kfir Itzhak.
JakFrost
Posts: 5
Joined: Sun Jul 03, 2011 10:41 am

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

Post 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
JakFrost
Posts: 5
Joined: Sun Jul 03, 2011 10:41 am

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

Post by JakFrost »

Added Ubuntu Bug report 806117 to update the Zoneminder package to get this fixed.
Locked