Joined: Fri Nov 13, 2009 5:53 am Posts: 3 Location: sc
/dev/video0 File Permissions in UBUNTU
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
Fri Nov 27, 2009 4:28 pm
kentcoast
Joined: Mon Nov 23, 2009 10:47 am Posts: 6
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
Sat Nov 28, 2009 11:16 pm
dhcpy
Joined: Fri Nov 27, 2009 12:23 pm Posts: 8
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!
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum