/dev/video0 keeps resetting permissions

Forum for questions and support relating to the 1.24.x releases only.
Locked
btrotter
Posts: 57
Joined: Tue Jan 15, 2008 3:31 pm

/dev/video0 keeps resetting permissions

Post by btrotter »

Everytime I reboot my Ubuntu server, I have to manually run "sudo chmod 777 /dev/video0" in order to get video going again.
What keeps happening to reset the permissions back during a reboot?
rockmanchile
Posts: 15
Joined: Wed Jun 17, 2009 12:53 am

Post by rockmanchile »

Why dont you added to rc.local ?
btrotter
Posts: 57
Joined: Tue Jan 15, 2008 3:31 pm

Post by btrotter »

Sorry to sound dumb, but what is rc.local?
rockmanchile
Posts: 15
Joined: Wed Jun 17, 2009 12:53 am

Post by rockmanchile »

if you are using Debian (at least i do):

nano /etc/rc.local

add the following line :

chmod 777 /dev/video0

reboot your machine.

You can also make a new file, put the command in and make it executable:

cd /etc/init.d
nano script

add :

chmod 777 /dev/video0

Save and exit...

chmod 775 script
update-rc.d script defaults

...done, now with every restart the permissions will be set to your video device.

regards.

rockmanchile
btrotter
Posts: 57
Joined: Tue Jan 15, 2008 3:31 pm

Post by btrotter »

Thanks I will give that a try. I am using Ubuntu.
Would you have any idea why the permissions would keep resetting themselves?
btrotter
Posts: 57
Joined: Tue Jan 15, 2008 3:31 pm

Post by btrotter »

Thanks rockmanchile, that worked.
I also found another link about this which will probably resolve the problem too.
http://www.zoneminder.com/forums/viewto ... mfix+chmod
rockmanchile
Posts: 15
Joined: Wed Jun 17, 2009 12:53 am

Post by rockmanchile »

great !.... surely, there are many ways to solve this kind of issues... I just told you the first one that came my mind.

best regards.

rockmanchile
Locked