0

In my computer centre in my college ubuntu is installed for some projects purpose in order to keep safe from virus we would like to block pendrive access

1 Answers1

0
  1. FS permission solution

    To block:

    sudo chmod 700 /media
    

    To unblock:

    sudo chmod 755 /media
    
  2. BIOS option (If available)

    You can also disable USB from system BIOS configuration option. Make sure BIOS is password protected.

  3. Grub option

    You can get rid of all USB devices by disabling kernel support for USB via GRUB. Open grub.conf or menu.lst and append "nousb" to the kernel line as follows:

    kernel /vmlinuz-2.6.18-128.1.1 ro root=LABEL=/ console=tty0 console=ttyS1,19200n8 nousb
    

    vmlinuz-2.6.18-128.1.1 - is just an example, put your own

    Save and close the file. Once done just reboot the system:

    sudo reboot
    
jokerdino
  • 41,732
LnxSlck
  • 12,456