From: summerxyt@gmail.com (夏业添)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Fwd: How can I disable all USB devices?
Date: Tue, 5 Jun 2012 15:02:38 +0800 [thread overview]
Message-ID: <CAMjnu2duFDq70VMZmu+Vt3KN3JWTU0Z5FQkDnHXLi17N1s2YBA@mail.gmail.com> (raw)
In-Reply-To: <CAMjnu2c=beFiwsziBaUcQuFdk9hMfMzzeVMCrpqwviSM9+vmnA@mail.gmail.com>
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 ?<Ashish_Bunkar@dell.com>:
> 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
next prev parent reply other threads:[~2012-06-05 7:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-05 3:18 How can I disable all USB devices? 夏业添
[not found] ` <A1A98FD909DC5248811A65C5D18E9C7635DD0574FA@BLRX7MCDC202.AMER.DELL.COM>
[not found] ` <CAMjnu2c=beFiwsziBaUcQuFdk9hMfMzzeVMCrpqwviSM9+vmnA@mail.gmail.com>
2012-06-05 7:02 ` 夏业添 [this message]
[not found] ` <A1A98FD909DC5248811A65C5D18E9C7635DD0575B9@BLRX7MCDC202.AMER.DELL.COM>
2012-06-08 4:10 ` 夏业添
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMjnu2duFDq70VMZmu+Vt3KN3JWTU0Z5FQkDnHXLi17N1s2YBA@mail.gmail.com \
--to=summerxyt@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).