Page 1 of 1
/dev/video0 keeps resetting permissions
Posted: Thu Jun 18, 2009 9:04 pm
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?
Posted: Thu Jun 18, 2009 9:55 pm
by rockmanchile
Why dont you added to rc.local ?
Posted: Thu Jun 18, 2009 10:30 pm
by btrotter
Sorry to sound dumb, but what is rc.local?
Posted: Fri Jun 19, 2009 2:23 am
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
Posted: Fri Jun 19, 2009 3:17 am
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?
Posted: Fri Jun 19, 2009 4:03 am
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
Posted: Fri Jun 19, 2009 1:40 pm
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