How to block input to webcam? [duplicate]
When I was running Windows 7 on my Lenovo machine there was a pre-installed Lenovo utility which would make it so that anyone trying to see what my webcam sees would instead see a still image of a camera with a cross over it. And thus preventing applications and hackers without root privileges from seeing out of my webcam. I say root privileges because root privileges were required in order to change the settings of the program in order to allow programs to actually use my webcam and get what it sees rather than the still image.
This was a very useful utility for privacy and security reasons, however on Ubuntu I have been unable to find a similar utility which has the ability to do the same. Is there such a utility or is there any way of achieving what I have described?
I am running Ubuntu GNOME 16.04 with GNOME 3.20.
A foolproof way to block webcam input
Picture provided by Darkreading.com
Disable the webcam kernel module:
modprobe -r uvcvideo
uvcvideo
is the most common module name. If not found, check lsmod | grep uvcv
and you'll get the module name.
This will disable it for this session.
To make it permanent, add blacklist
+ module name to /etc/modprobe.d/blacklist.conf
. (Like blacklist uvcvideo
)
Another foolproof solution that wouldn't work for everyone:
Open the laptop up, and unplug the webcam. Use an external webcam instead, pluggin it in only as required. I actually did this in the opposite order as the internal webcam was poor quality and I didn't want it on the same angle as the screen.