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
Asked
Active
Viewed 1,607 times
1 Answers
0
FS permission solution
To block:
sudo chmod 700 /mediaTo unblock:
sudo chmod 755 /mediaBIOS option (If available)
You can also disable USB from system BIOS configuration option. Make sure BIOS is password protected.
Grub option
You can get rid of all USB devices by disabling kernel support for USB via GRUB. Open
grub.conformenu.lstand append "nousb" to the kernel line as follows:kernel /vmlinuz-2.6.18-128.1.1 ro root=LABEL=/ console=tty0 console=ttyS1,19200n8 nousbvmlinuz-2.6.18-128.1.1- is just an example, put your ownSave and close the file. Once done just reboot the system:
sudo reboot