How to Disable Your Laptop’s Webcam in Ubuntu 18.04

webcamicon-1-3103648

For security or any other reason, here’s how to disable your laptop’s webcam in Ubuntu 18.04, and also all other current Ubuntu releases.

To disable Webcam temporarily:

You can disable your webcam device easily via modprobe command.

Open terminal either via Ctrl+Alt+T or by searching for ‘terminal’ from app launcher. When it opens, run command:

sudo modprobe -r uvcvideo

modprobe-webcam-600x77-4430574

The command removes the module from Linux kernel. Webcam is disabled until you reboot Ubuntu. Just start (or restart) Cheese to check it out:

no-webcam-600x451-3541022

To permanently disable webcam in Ubuntu:

You can add a rule into configuration file, so your Ubuntu machine never starts the webcam kernel module on boot.

Open terminal and run command to edit the configuration file:

sudo gedit /etc/modprobe.d/blacklist.conf

When the file opens, add two new lines and save it.

#Disable webcam
blacklist uvcvideo

block-webcam-600x276-8025941

To revert the changes, simply remove the 2 lines, save the file and finally reboot.

Original Article