0

How can i prevent copying data to usb devices in Linux Ubuntu 16.04. Is there anything like "Group policy" in Windows or similiar?

1 Answers1

0

There may well be better, more bullet proof ways of doing it, but playing arround on my Ubuntu 16.04 system -

Ubuntu mounts disks at /media/USERNAME/XXXXXXXX so by changing the write permissions for /media/USERNAME they will not be able to access the mount point. You can do this (as root) using chmod 700 /media/USERNAME

A better way - depending on your needs - might be to stop the usb_storage module from loading, making USB disks unrecogniseable. You can do this with a command like

 echo "blacklist usb-storage" >> /etc/modprobe.d/blacklist-usb.conf 

And rebooting your system.

davidgo
  • 73,366