I need to disable CD/DVD ROM and USB ports for desktop on which 14.04 Ubuntu is installed.Tried updating in modprobe.conf but no luck.Please tell me if any other alternativies.
edit this file blacklist.conf :
from Terminal :
sudo nano /etc/modprobe.d/blacklist.conf
press Alt+F2 then use the command
gksu gedit /etc/modprobe.d/blacklist.conf
Add now the following two lines:
# Block access to USB blacklist usb_storage
Save the file and close it, then restart your system. Your USB ports are now disabled.
To enable USB ports, repeat the same steps and in step2, comment the "blacklist usb_storage" line as follows:
# blacklist usb_storage