can't get it running - permission denied

Support and queries relating to all previous versions of ZoneMinder
Locked
combatwombat_nz
Posts: 7
Joined: Thu Aug 19, 2004 4:01 am

can't get it running - permission denied

Post by combatwombat_nz »

Help!
been scanning the posts here, but cannot see an answer to my dilemma. ZM Console runs, but devices are RED. Xawtv works fine.

/var/log/messages says:
zmc-d0: ERR [Failed to open video device /dev/video0: Permission denied].

My config:
Mandrake10 Official
Grandtec Xguard 9
on /dev/video0, permissions r_xr_xr_x root root
seb
Posts: 14
Joined: Wed Aug 25, 2004 7:27 am
Location: Belgium

Post by seb »

My system is FC1
Creative Webcam 3

[root@serveur](851)# ll video0
crw----rw- 1 root root 81, 0 Sep 15 2003 video0
combatwombat_nz
Posts: 7
Joined: Thu Aug 19, 2004 4:01 am

Thanks for your reply

Post by combatwombat_nz »

Thanks for your reply.
I am a noobie, but am finding my way into the light!
why do i get this:

[root@localhost dev]# ll video0
lr-xr-xr-x 1 root root 10 Aug 26 13:48 video0 -> v4l/video0

from console?

When I get this from Konqueror:

When viewing /dev, video0 has permissions:
rw----rw- root video v4l/video0

Now, excuse my ignorance, but that looks like it has two sets of permissions. One at console, one at Konqueror? Is that possible?
And what does the "l" mean in front of the permissions from console? :?:
seb
Posts: 14
Joined: Wed Aug 25, 2004 7:27 am
Location: Belgium

Post by seb »

it seems /dev/video0 is a symlink pointing to /dev/v4l/video0

Under RH and FC, a symlink is always lrwxrwxrwx..

Try "chmod 777 /dev/video0" because /dev/v4l/video0 apparently has the right permissions

l stands for link under FC
d stand for directory/folder

eg :
lrwxrwxrwx 1 root root 10 Aug 4 19:04 rc6.d -> rc.d/rc6.d
drwxr-xr-x 10 root root 320 Aug 26 00:13 rc.d

It seems Konqueror is showing the permissions of the symlinked (/dev/v4l/video0) file when you are clicking the symlink (/dev/video0)..

Good luck 8)
User avatar
davide
Posts: 78
Joined: Mon Mar 22, 2004 1:04 am
Location: Italy

Post by davide »

you may find the solution here:
http://www.zoneminder.com/forums/viewto ... highlight=

I hope it helps
combatwombat_nz
Posts: 7
Joined: Thu Aug 19, 2004 4:01 am

Thanks, going now

Post by combatwombat_nz »

Thanks everyone for your help.

I tried the alteration to zmpkg.pl, but this didn't change anything. Even running zmfix from console didn't do it.

But thanks, Seb, you were right. chmod 777 /dev/video0 did the trick. I get that to run in a custom rc process, by modprobing bttv in the inittab, then again in the custom process (have to do it twice, or the next step complains cos' /dev/video0 hasn't been created yet) , then chmod 777 /dev/video0, then /usr/local/bin/zmpkg.pl start. That way, whatever user is logged in, they can bring up the ZMConsole in a browser.

I also setup mgetty to answer the modem, and provide offsite surveillance.

Thanks for the software guys! It can be a bit of a pig to setup, probably more due to the OS customizations, but once running, it is cool!

Just as a user suggestion, have you thought about putting a front-end program together, ie instead of the browser use. I had a look at Palantir too, with it's handy front-end, but it only runs one channel at a time (at least that's all I could get from it).


:D :D :D :D
Locked