I have seen this question asked before, but the given fixes dont work for me.
I just did a fresh install of Ubuntu 10.04 LTS server. I then installed Zoneminder 1.24.2.
I followed the instructions from here:
http://viktorpetersson.com/2010/05/23/h ... ts-server/
Everytime I reboot, Zoneminder wont start. I then have to go to my four video devices and run:
sudo chmod 666 /dev/video0
sudo chmod 666 /dev/video1
sudo chmod 666 /dev/video2
sudo chmod 666 /dev/video3
Once I do that, Zoneminder works great.
Once I reboot, it loses the settings and I have to run it again.
I saw someone in one of the threads that in order to get the change to stay, I needed to run:
sudo adduser www-data video
I run this command, and it says it is added, but when I reboot, the problem still isnt fixed.
How can I resolve this for good?
Thank you.
Have to run 'sudo chmod 666 /dev/video' after reboot
do this after boot ls -l /dev
make sure the group of /video1 really is video
Ex:
crw-rw---- 1 root video 81, 0 2010-10-22 12:47 video0
my system is ubuntue 10.10
as you can see i also have
750 permissions not 666
also what that comand did was add "www-data" user to the group "video"
you can see this by running
cat /etc/group
you should see this in there
video44:www-data
make sure the group of /video1 really is video
Ex:
crw-rw---- 1 root video 81, 0 2010-10-22 12:47 video0
my system is ubuntue 10.10
as you can see i also have
750 permissions not 666
also what that comand did was add "www-data" user to the group "video"
you can see this by running
cat /etc/group
you should see this in there
video44:www-data
I rebooted the server and ran "ls -l /dev" and show this:
crw-rw---- 1 root video 81, 0 2010-10-31 17:17 video0
crw-rw---- 1 root video 81, 2 2010-10-31 17:17 video1
crw-rw---- 1 root video 81, 4 2010-10-31 17:17 video2
crw-rw---- 1 root video 81, 6 2010-10-31 17:17 video3
Then I ran:
sudo chmod 666 /dev/video0
sudo chmod 666 /dev/video1
sudo chmod 666 /dev/video2
sudo chmod 666 /dev/video3
Now running "ls -l /dev" shows this:
crw-rw-rw- 1 root video 81, 0 2010-10-31 09:26 video0
crw-rw-rw- 1 root video 81, 2 2010-10-31 09:26 video1
crw-rw-rw- 1 root video 81, 4 2010-10-31 09:27 video2
crw-rw-rw- 1 root video 81, 6 2010-10-31 16:36 video3
I also confirmed that this is in /etc/group:
video44:www-data
I dont understand why the permissions keep resetting after a reboot.
crw-rw---- 1 root video 81, 0 2010-10-31 17:17 video0
crw-rw---- 1 root video 81, 2 2010-10-31 17:17 video1
crw-rw---- 1 root video 81, 4 2010-10-31 17:17 video2
crw-rw---- 1 root video 81, 6 2010-10-31 17:17 video3
Then I ran:
sudo chmod 666 /dev/video0
sudo chmod 666 /dev/video1
sudo chmod 666 /dev/video2
sudo chmod 666 /dev/video3
Now running "ls -l /dev" shows this:
crw-rw-rw- 1 root video 81, 0 2010-10-31 09:26 video0
crw-rw-rw- 1 root video 81, 2 2010-10-31 09:26 video1
crw-rw-rw- 1 root video 81, 4 2010-10-31 09:27 video2
crw-rw-rw- 1 root video 81, 6 2010-10-31 16:36 video3
I also confirmed that this is in /etc/group:
video44:www-data
I dont understand why the permissions keep resetting after a reboot.
Well they should reset because it is configured by the system when it boots. other wise you would have to create the devices in dev every time you boot.
but www-data should have permissions with the default settings because it was added to video group.
Try this reboot and leave permissions alone. Then restart zm; it is possiable the video drivers were not loaded. Also doing chmod xx6 is not a good practice in any circumstance.
If that dosen't work post the errors zm generates.under /tmp and /var/log
but www-data should have permissions with the default settings because it was added to video group.
Try this reboot and leave permissions alone. Then restart zm; it is possiable the video drivers were not loaded. Also doing chmod xx6 is not a good practice in any circumstance.
If that dosen't work post the errors zm generates.under /tmp and /var/log
kingofkya wrote:Well they should reset because it is configured by the system when it boots. other wise you would have to create the devices in dev every time you boot.
but www-data should have permissions with the default settings because it was added to video group.
Try this reboot and leave permissions alone. Then restart zm; it is possiable the video drivers were not loaded. Also doing chmod xx6 is not a good practice in any circumstance.
If that dosen't work post the errors zm generates.under /tmp and /var/log
You were right. I rebooted the server and just gave it a few minutes. ZM was stopped and the /dev/video devices had these permissions:
crw-rw---- 1 root video 81, 0 2010-11-01 22:30 video0
I went in to ZM and started it. It started and when I went back and looked at the devices, they had these permissions:
crw-rw-rw- 1 root video 81, 0 2010-11-01 22:34 video0
I guess ZM just tries to start too fast, fails, then doesnt try again.
-
- Posts: 440
- Joined: Sat Sep 25, 2004 12:45 am
- Location: Fulton, MO
-
- Posts: 440
- Joined: Sat Sep 25, 2004 12:45 am
- Location: Fulton, MO