Posts: 1
Joined: Thu Feb 18, 2016 12:49 am

Error opening device: /dev/video0

Thu Feb 18, 2016 12:53 am

When I want to open my Logitech webcam c270 on raspberry pi, it occurred the following error:

Error opening device: /dev/video0
open: Operation not permitted.

How can I do with it?

User avatar
Posts: 143
Joined: Fri Dec 04, 2015 1:45 am
Location: Texas, USA

Re: Error opening device: /dev/video0

Thu Feb 18, 2016 5:32 am

Does the file /dev/video0 exist. Check with "ls -l /dev/video0". It may be that your user (pi) doesn't have permissions and, if that is so, running your command as root (for example with sudo) might be the solution. What tool, command or program are you using to access your video device?
FREE book on Raspberry Pi usage and programming


Posts: 12
Joined: Sat Jan 13, 2018 9:55 pm
Location: Hohenlohe, Germany
Contact: Website

Re: Error opening device: /dev/video0

Sun Dec 30, 2018 9:08 pm

sudo usermod -a -G video youruser

AND relogin

Return to “Troubleshooting”