I have installed Raspbian on the Raspberry Pi. Due to the security policy in the company, we would like to block access to USB mass storage (pendrives, usb drives, etc.). I tried according to this article: https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=91677 with the option:

chattr +i ~/.config/pcmanfm/LXDE/pcmanfm.conf

however, each entry in the file explorer options and change mount parameters makes it easily possible to use the storage. Is there any way to permanently block the ability to mount removable media?

  • Possible duplicate of unix.stackexchange.com/questions/63199/… – SHW Sep 21 '15 at 7:13
  • Trying to block access to USB drives via the file manager is an approach that is bound to fail. Users can always launch a different file manager or access the drive from command line. – Dmitry Grigoryev Sep 21 '15 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.