From mboxrd@z Thu Jan 1 00:00:00 1970 From: summerxyt@gmail.com (=?GB2312?B?z8TStczt?=) Date: Tue, 5 Jun 2012 15:02:38 +0800 Subject: Fwd: How can I disable all USB devices? In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Thanks for reply! But it seems not suitable for my job. Sorry for that I didn't talk about my situation clearly. I was asked to only enable usb Network Interface Card, and disable all other usb devices(like keyboard, mouse, stick, etc.). I need a way to distinguish different usb devices and disable/enable them. If anyone has some idea, please tell me. 2012/6/5 ?: > Hi > > You can just disable the USB support for your kernel by editing kernel parameters. > Just add "nousb" to you kernel parameters In "/etc/grub.conf" and your kernel should not support USB device thereafter. > Also when you would like to enable them again just remove "nousb" from kernel command line and all should ?work fine with that. > > Please let me know if that helped you. > > Ashish Bunkar > Linux Engineering > Dell | BDC > office +91-80-28078131,? mobile +91-7259183696 > Ashish_Bunkar at dell.com > > > > -----Original Message----- > From: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of ??? > Sent: Tuesday, June 05, 2012 8:48 AM > To: kernelnewbies > Subject: How can I disable all USB devices? > > Hi there, > > I want to disable all my USB devices (mouse, keyboard,... ) now, but hope to enable some certain device in the future. And I don't want to recompile kernel or disable usb module. > > I've searched on the Internet, and it seems that udev manage devices connecting to my computer. Can I use udev to disable all USB devices? > > Thanks! > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies at kernelnewbies.org > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies