Hi Guys,
Do you know how to disable or enable pen drive in ubuntu? If you want to know, i am going to share it.
For Disable Pen Drive-
First of all go to ubuntu terminal by pressing (Alt+cntr+T)
then type below command,
sudo bash
password of your desktop administrator-
chmod 444 /media/
sudo apt-get update

Now your Desktop/Laptop Usb port/ Pen drive will be disabled.
For Enable USB Port/Pen Drive In Ubuntu-
Go to terminal by Pressing (Alt+cntrl+T)
Type,
sudo bash
Password for your administrator user-
chmod 777 /media/
sudo apt-get update

Now Your USB port will be enabled.