ServerKaKa
HOME
Published March 11, 2018 by Subhash
Vadadoriya LINUX
Enable and Disable
AWS USB
Port in Linux
DEVOPS
Nothing is safe in Cyberworld. Even a
safe and secureSERVER
Linux OS like Ubuntu
can be hacked in less than 5 minutes.
APPLICATIONS
One of the things which we wanted to
implement in endpoint protection was
WINDOWS
to disable the USB port. While Linux is
almost secure from viruses, data theft
SHELL SCRIPTING
can occur by means of a removable me-
dia.
BOOKS
IQ
ABOUT US
In this tutorial, we will see a quick way
to disable USB ports in Ubuntu.
Method 1:
Open Terminal (Ctrl + T) and insert be-
low command
# chmod 000 /media/
(FOR DISABLE USB)
# chmod 777 /media/
(FOR ENABLE USB)
The above chmod is nothing but
change mode which is a part of
UNIX/Linux code mainly used for read
or write permission that can be repre-
sented by numbers.
Method 2:
Add a new single line in /etc/mod-
probe.d/blacklist.conf file. You can
use the following command like this:
# sudo echo "blacklist usb-storage" >>
/etc/modprobe.d/blacklist.conf
From next time onwards, no one will be
able to use the USB ports.
To re-enable the use of USB port,
remove the added line from black-
list.conf.
DISABLE USB , USB
← Newer Post Home Older Post →
SEARCH
Search...
Go
GET UPDATE ON WHATSAPP
EMAIL UPDATE
Get Posts In Your Inbox
Enter Your Email Here...
Subscribe
POPULAR POSTS
How to Upload a File to Google Drive from the Termi-
nal/Command Line
How to Enable Password Authentication in AWS ec2
Instances
Upload Build to AWS S3 from Jenkins
Connect AWS RDS MySQL instance with phpMyAd-
min
mail: command not found in Linux & Working with
'mail' command
Enable and Disable USB Port in Linux
Install and Configure Zimbra Mail Server in Ubun-
tu/Debian
AWS S3 LifeCycle rules for moving data from S3 to
Glacier
Run Powershell scripts in Jenkins
Deploy Java Web App in Elastic Beanstalk with Jenkins
LIKE ON FACEBOOK
ServerKaKa
582 followers
Follow Page Share
BLOG ARCHIVE
► 2021 (2)
► 2020 (2)
► 2019 (13)
▼ 2018 (100)
► December (6)
► November (4)
► October (1)
► September (4)
► August (9)
► July (3)
► June (3)
► May (6)
► April (7)
▼ March (18)
Install Sublime Text 3 in Linux
Set up an Email Alert when a User login in Linux
S...
All Linux Command Line Sheet
How to Reset Root Password On Ubuntu/Debian
Linux Interview Question
AWS Interview Questions
How to Setup EC2 Instance for Ping Response
Blocking websites with Windows Firewall
Rollback or Downgrade an update on
CentOS/RHEL
Create Network Share File/Folder via Samba on
Linux
Enable and Disable USB Port in Linux
Git - Branching
Git - Push Code
Git – Commit Files and Log
Git – Add and Delete Files
Git – Add Remote Repository
Git – Create Repository
Install GIT Client in Linux
► February (13)
► January (26)
► 2017 (20)
13 Copyright © 2022 ServerKaKa
SHA RES