problem with permissions after reboot
Posted: Thu Mar 25, 2004 3:09 pm
Hi, I have a little problem here, I think I did something wrong configuring my system. Here's the problem:
ZM works very well in everything but after every reboot it gives me that error:
(from /var/log/messages)
Mar 26 15:38:29 videoserver zm: Starting ZoneMinder:
[...]
Mar 26 15:38:30 videoserver zmfix[1914]: INF [Debug Level = 0, Debug Log = ]
Mar 26 15:38:30 videoserver zmfix[1914]: INF [Resetting permissions on /dev/video0 to 20606]
[...]
Mar 26 15:38:34 videoserver zmc-d0[2107]: INF [Debug Level = 0, Debug Log = ]
Mar 26 15:38:34 videoserver zmc-d0[2107]: ERR [Failed to open video device /dev/video0: Permission denied]
I must go to the console and do "restart" or run zmfix manually to let zmc have access to video0. after that zm works well.
At the moment I did a walkaround by putting a call to zmfix in crontab.
Mar 26 15:40:00 videoserver CROND[2392]: (root) CMD (/usr/local/bin/zmfix)
Mar 26 15:40:00 videoserver zmfix[2392]: INF [Debug Level = 0, Debug Log = ]
Mar 26 15:40:00 videoserver zmfix[2392]: INF [Resetting permissions on /dev/video0 to 20606]
Mar 26 15:40:54 videoserver zmc-d0[2395]: INF [Debug Level = 0, Debug Log = ]
Mar 26 15:40:54 videoserver zmc-d0[2395]: INF [Starting Capture]
Mar 26 15:45:19 videoserver zmc-d0[2395]: INF [New: 1000 - Capturing at 3.77 fps]
The same trick didn't work calling it form /etc/rc.d/rc.local
Can somebody tell me what I am missing?
System: Mandrake10, kernel 2.6.3, bttv 0.9.12 (card=103, insmod), zm 1.19.1
Thx,
Davide
ZM works very well in everything but after every reboot it gives me that error:
(from /var/log/messages)
Mar 26 15:38:29 videoserver zm: Starting ZoneMinder:
[...]
Mar 26 15:38:30 videoserver zmfix[1914]: INF [Debug Level = 0, Debug Log = ]
Mar 26 15:38:30 videoserver zmfix[1914]: INF [Resetting permissions on /dev/video0 to 20606]
[...]
Mar 26 15:38:34 videoserver zmc-d0[2107]: INF [Debug Level = 0, Debug Log = ]
Mar 26 15:38:34 videoserver zmc-d0[2107]: ERR [Failed to open video device /dev/video0: Permission denied]
I must go to the console and do "restart" or run zmfix manually to let zmc have access to video0. after that zm works well.
At the moment I did a walkaround by putting a call to zmfix in crontab.
Mar 26 15:40:00 videoserver CROND[2392]: (root) CMD (/usr/local/bin/zmfix)
Mar 26 15:40:00 videoserver zmfix[2392]: INF [Debug Level = 0, Debug Log = ]
Mar 26 15:40:00 videoserver zmfix[2392]: INF [Resetting permissions on /dev/video0 to 20606]
Mar 26 15:40:54 videoserver zmc-d0[2395]: INF [Debug Level = 0, Debug Log = ]
Mar 26 15:40:54 videoserver zmc-d0[2395]: INF [Starting Capture]
Mar 26 15:45:19 videoserver zmc-d0[2395]: INF [New: 1000 - Capturing at 3.77 fps]
The same trick didn't work calling it form /etc/rc.d/rc.local
Can somebody tell me what I am missing?
System: Mandrake10, kernel 2.6.3, bttv 0.9.12 (card=103, insmod), zm 1.19.1
Thx,
Davide