VectorLinux
October 25, 2014, 04:57:07 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: After reboot it forgets permission from chmod  (Read 4732 times)
acous
Member
*
Posts: 78


« on: May 16, 2007, 11:53:22 am »

I give permission with this command

"chmod 666 /dev/video0"

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

how solve this?
Logged
bigpaws
Vectorian
****
Posts: 1856


« Reply #1 on: May 16, 2007, 11:58:31 am »

Are you using chmod as root.

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

Bigpaws
Logged
acous
Member
*
Posts: 78


« Reply #2 on: May 16, 2007, 12:06:34 pm »

yes I wrote su

How do I add myself to the video group?
Logged
uelsk8s
Administrator
Vectorian
*****
Posts: 2504



« Reply #3 on: May 16, 2007, 12: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
Logged
acous
Member
*
Posts: 78


« Reply #4 on: May 16, 2007, 12:51:21 pm »

thanks, edited rc.local and it works

doesnt work if I plug in webcam after reboot, but that is no problem.
Logged
saulgoode
Vectorite
***
Posts: 340



« Reply #5 on: May 16, 2007, 03: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.
Logged

A complex system that works is invariably found to have evolved from a simple system that works.
Triarius Fidelis
Vecteloper
Vectorian
****
Posts: 2399


Domine, exaudi vocem meam


WWW
« Reply #6 on: May 16, 2007, 09:37:33 pm »

http://reactivated.net/writing_udev_rules.html

This might help. Sad to say that I have little experience with udev myself.
Logged

"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months
acous
Member
*
Posts: 78


« Reply #7 on: May 17, 2007, 12: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.

 Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!