Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I have installed Ubuntu 12.04 Desktop but want to block usb and enable USB data card in ubuntu. Thanks Rohit...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2014
    Posts
    0

    Question block usb storage enable USB data card in ubuntu 12.04 Desktop


    Hi,

    I have installed Ubuntu 12.04 Desktop but want to block usb and enable USB data card in ubuntu.

    Thanks
    Rohit

  2. #2
    Linux Engineer
    Join Date
    Dec 2013
    Posts
    1,298
    Perhaps you could be clearer about what you're trying to achieve. If you want to add a mobile usb connection you won't "block" usb to do it. You plug your dongle in, go to your network configuration and add "Mobile Broadband" and then follow the instructions.

  3. #3
    Just Joined!
    Join Date
    Jul 2014
    Posts
    30
    sudo echo "blacklist usb-storage" >> /etc/modprobe.d/blacklist.conf

  4. #4
    Just Joined!
    Join Date
    Jul 2014
    Posts
    0
    Hi ,
    Thanks for reply. I have edited /etc/modprobe.d/blacklist.conf and added the line blacklist usb-storage but this disables all USB devices except USB keyboard and USB mouse. And my USB data card dosent get detected. I just want no one should not read or write on USB storage part.

    Thanks
    Rohit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •