Must CHMOD 777 every time to get cameras working
Must CHMOD 777 every time to get cameras working
When booting my zoneminder server (Ubuntu server) zoneminder starts automatically. Unfortunately, it fails to start the cameras, returning errors (exited abnormally etc.)
My /dev/video already has its permissions set to 777.
If I chmod 777 /dev/video, however, it brings the cameras on-line and stops all the errors.
Obviously, this is a workaround that I can do each time I boot the server, which is not often, but it does seem weird.
Anyone have any explanation, and a possible long-term solution?
Cheers,
Adam
My /dev/video already has its permissions set to 777.
If I chmod 777 /dev/video, however, it brings the cameras on-line and stops all the errors.
Obviously, this is a workaround that I can do each time I boot the server, which is not often, but it does seem weird.
Anyone have any explanation, and a possible long-term solution?
Cheers,
Adam
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
The zmfix binary should be setuid, that is when you do it should look like this and show an 's' instead of an 'x' in the first block of permissions. What do you get if you do that?
Code: Select all
ls -l zmfix
Code: Select all
-rwsr-xr-x 1 root root 128011 Apr 3 17:09 /usr/local/bin/zmfix
Phil
Hmmm, mine is as you thought:
So how do I go about changing it, and will it make a difference?
Code: Select all
-rwxr-xr-x 1 root root 38780 2007-02-25 23:44 /usr/bin/zmfix
This will get you set:
Code: Select all
chmod 4755 /usr/bin/zmfix
Problem solved.
Thanks this topic solved my latest issues with Zoneminder. Ive installed it using apt-get with Debian but had to change /usr/bin/zmfix permissions to make it display images.
-
- Posts: 23
- Joined: Wed Apr 11, 2007 1:27 pm
- Location: Austin, Texas USA
-
- Posts: 52
- Joined: Sat Jul 28, 2007 12:27 pm
- Location: Kinzweiler, Germany and Beith, Scotland
Ubuntu won't let me create www_data as a user. No understrokes possible.John Williams wrote:Another way is to create a group called video and add www_data to it. Ubuntu created the /dev/video device in the video group, which does not exist. Zoneminder runs the capture as user www_data. This fix worked for me...
I still don't have the cameras running.
Just to explain why I install Ubuntu 7.10 now (Jan 2009): I haven't found a way to get the so named "Pico" card working with Ubuntu 8.xx. So I need to use 7.10. I had installed the 2008 ZMLiveCD from isentrix.com. But the display with the blue and red boxes under the picture did not really work. And I'm using Ubuntu on other machines.
Serenity is not freedom from storm; it's peace within the storm
Does this help you at all? http://wiki.robotz.com/index.php/Pico_I ... V_DVR_Card (look towards the bottom of the page)cyrulution wrote:Ubuntu won't let me create www_data as a user. No understrokes possible.
I still don't have the cameras running.
Just to explain why I install Ubuntu 7.10 now (Jan 2009): I haven't found a way to get the so named "Pico" card working with Ubuntu 8.xx. So I need to use 7.10. I had installed the 2008 ZMLiveCD from isentrix.com. But the display with the blue and red boxes under the picture did not really work. And I'm using Ubuntu on other machines.
Chances are that if you can get it working at all with an older Linux distro it'll work (maybe better) with newer. Once you've got a working card in Linux ZM should have no problems with it.
-
- Posts: 52
- Joined: Sat Jul 28, 2007 12:27 pm
- Location: Kinzweiler, Germany and Beith, Scotland
The information from robotz is really useful for using my cards.nuck wrote:Does this help you at all? http://wiki.robotz.com/index.php/Pico_I ... V_DVR_Card (look towards the bottom of the page)
Chances are that if you can get it working at all with an older Linux distro it'll work (maybe better) with newer. Once you've got a working card in Linux ZM should have no problems with it.
After all I decided to start from scratch.
I thoroughly followed the steps in distribution specific installation guide from the ZM wiki for Ubuntu 8.04 (I'm running Ubuntu on other machines since years)
I downloaded Ubuntu 8.04 i386 server (the LTS= Long Time Support version of Ubuntu). After i added a file "bttv" with the line
Code: Select all
options bttv card=77,77
I think this is the best solution for my rather modern amd64 machine.
Serenity is not freedom from storm; it's peace within the storm