/dev/video0 File Permissions in UBUNTU

Forum for questions and support relating to the 1.24.x releases only.
Locked
papadeath
Posts: 3
Joined: Fri Nov 13, 2009 4:53 am
Location: sc

/dev/video0 File Permissions in UBUNTU

Post by papadeath »

I have loaded zoneminder 1.24 on ubuntu 9.1.

being a newbe to Linux I am having to learn the OS at same time as the application.

I was having a problem with getting zoneminder to open the file /dev/video0, I was getting a permissions denied result in the enhanced log.

I did some searching and found that if I use 'sudo chmod 666 or 777 /dev/video0' that I can get the permissions on the file to change.

with the permissions changed I am now able to get the system to work just fine.

the problem is that when I reboot the box the file permissions go back to what they were and I have to re-enter the chmod command.

how do I set permissions in ubuntu for this file and heve them stick?
R32
kentcoast
Posts: 6
Joined: Mon Nov 23, 2009 9:47 am

Post by kentcoast »

Hi,

As no-one else has answered, I'll try to help, but with a huge caveat - I'm a newbie as well, at most a couple of weeks further down the road.

My understanding of this issue is that while it can be solved with chmod it's possibly overkill, the real problem is likely to be related to access via Apache. The first time I installed zm on the system I use it just worked - I didn't go through any of this, but after breaking the thing and re-installing on a clean system, I had the same behavior to fix.

'sudo adduser www-data video' solved it for me.

PW
dhcpy
Posts: 8
Joined: Fri Nov 27, 2009 11:23 am

Post by dhcpy »

kentcoast wrote:Hi,

As no-one else has answered, I'll try to help, but with a huge caveat - I'm a newbie as well, at most a couple of weeks further down the road.

My understanding of this issue is that while it can be solved with chmod it's possibly overkill, the real problem is likely to be related to access via Apache. The first time I installed zm on the system I use it just worked - I didn't go through any of this, but after breaking the thing and re-installing on a clean system, I had the same behavior to fix.

'sudo adduser www-data video' solved it for me.

PW
Thanks!
that really helps!

I have webmin on my ubuntu, and what I did was to enter in the Users and Groups config page, and add the "www-data" user to the "video" group.
I guess that's what the command does too...

thanks for the great post, solved my problem completely!
Locked