Today, we’ll see how to disable built-in webcam or external webcam when it’s not used, and how to enable it back when it’s required in your Linux box. Disabling web cam can help you in many ways. You can prevent from the malware taking control of your integrated webcam and spy on you and your home. We have read countless stories in the past that some hackers can spy on you using your webcam without your knowledge. By hacking your webcam, the user can share your private photos and videos online. There could be many reasons. If you’re ever wondered how to disable the web cam in your Laptop or desktop, you’re in luck. This brief tutorial will show you how. Read on.
I tested this guide on Arch Linux and Ubuntu. It worked exactly as described below. I hope this will work on other Linux distributions as well.
To do so, edit the following file (if the file is not exists, just create it):
```
$ sudo nano/etc/modprobe.d/blacklist.conf
```
Add the following lines:
```
##Disable webcam.
blacklist uvcvideo
```
The line **“##Disable webcam”** is not necessary. I have added it for the sake of easy understanding.
Save and exit the file. Reboot your system to take effect the changes.
To verify, whether Webcam is really disabled or not, open any instant messenger applications or web cam software such as Cheese or Guvcview. You will see a blank screen like below.
**Cheese output:**
![][2]
**Guvcview output:**
![][3]
See? The web cam is disabled and is not working.
To enable it back, edit:
```
$ sudo nano/etc/modprobe.d/blacklist.conf
```
Comment the lines which you have added earlier.
```
##Disable webcam.
#blacklist uvcvideo
```
Save and close the file. Then, reboot your Computer to enable your Webcam.
Does it enough? No. Why? If someone can remotely access your system, they can easily enable the webcam back. So, It is always a good idea to cover it up with a tape or unplug the camera or disable it in the BIOS when it’s not used. This method is not just for disabling the built-in webcam, but also for external web camera.
And, that’s all for now. Hope this was useful. More good stuffs to come. Stay tuned!