VectorLinux

Vectorbie Station => Vectorbie Questions => Topic started by: acous on May 16, 2007, 12:53:22 pm

Title: After reboot it forgets permission from chmod
Post by: acous on May 16, 2007, 12:53:22 pm
I give permission with this command

"chmod 666 /dev/video0"

and it works, but efter reboot it is "permission denied" again

how solve this?
Title: Re: After reboot it forgets permission from chmod
Post by: bigpaws on May 16, 2007, 12:58:31 pm
Are you using chmod as root.

You may also be able to add yourself to the video group.

Bigpaws
Title: Re: After reboot it forgets permission from chmod
Post by: acous on May 16, 2007, 01:06:34 pm
yes I wrote su

How do I add myself to the video group?
Title: Re: After reboot it forgets permission from chmod
Post by: uelsk8s on May 16, 2007, 01:11:04 pm
easiest way to fix it is add  "chmod 666 /dev/video0" to the bottom of /etc/rc.d/rc.local
You can also make a udev rule to fix it when the device is created.
you can add yourself to the video group by editing /etc/group and add your username on the line that starts with video

HTH,
Uelsk8s
Title: Re: After reboot it forgets permission from chmod
Post by: acous on May 16, 2007, 01:51:21 pm
thanks, edited rc.local and it works

doesnt work if I plug in webcam after reboot, but that is no problem.
Title: Re: After reboot it forgets permission from chmod
Post by: saulgoode on May 16, 2007, 04:36:55 pm
The 'video0' device is created when the camera driver module gets installed. This means that if you unplug and then reconnect your camera, the /dev/video0 link will be destroyed and then recreated.

I believe you have to manually change the ownership and/or permissions afterwards. I should be interested if there is an alternate method of which I am unaware.
Title: Re: After reboot it forgets permission from chmod
Post by: Triarius Fidelis on May 16, 2007, 10:37:33 pm
http://reactivated.net/writing_udev_rules.html

This might help. Sad to say that I have little experience with udev myself.
Title: Re: After reboot it forgets permission from chmod
Post by: acous on May 17, 2007, 01:42:40 am
Thanks for answers, this forum is very nice! but it is not my computer so not that important to be able to plug in webcam after boot. Just tell them to have it plugged in.

 :)