# REstriction to USB

**URL:** <https://forums.suse.com/t/restriction-to-usb/26655>\
**Category:** SLES Configure-Administer\
**Created:** [February 5, 2015, 5:01pm UTC](https://forums.suse.com/t/restriction-to-usb/26655 "2015-02-05T17:01:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirso](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@kirso](https://forums.suse.com/u/kirso)\
**Post date:** [February 5, 2015, 5:01pm UTC](https://forums.suse.com/t/restriction-to-usb/26655/1 "2015-02-05T17:01:15Z")

</div>

Hello,

It is somehow posible to restrict USB devices on SLES11 SP3? I mean for example that only specified (white listed) USB keyboards, USB mouse or USB disk drives will be allowed based on their serial number or something else.

Thank a lot for any advices…

Regards  
Peter

---

<div class="post-metadata">

**Author:** ![mikewillis](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mikewillis](https://forums.suse.com/u/mikewillis)\
**Post date:** [February 5, 2015, 5:48pm UTC](https://forums.suse.com/t/restriction-to-usb/26655/2 "2015-02-05T17:48:09Z")

</div>

[QUOTE=kirso;26209]Hello,

It is somehow posible to restrict USB devices on SLES11 SP3? I mean for example that only specified (white listed) USB keyboards, USB mouse or USB disk drives will be allowed based on their serial number or something else.

Thank a lot for any advices…

Regards  
Peter[/QUOTE]

Never tried it myself, but I have seen discussions of doing such a thing with udev.

[https://www.google.co.uk/search?q=linux+restrict+usb+devices+udev](https://www.google.co.uk/search?q=linux+restrict+usb+devices+udev)

---

<div class="post-metadata">

**Author:** ![juergen\_schlinker](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/juergen_schlinker/32/11123_2.png) [@juergen\_schlinker](https://forums.suse.com/u/juergen_schlinker)\
**Post date:** [April 15, 2024, 10:04am UTC](https://forums.suse.com/t/restriction-to-usb/26655/3 "2024-04-15T10:04:25Z")

</div>

For input-devices you can do it like this:  
You could use udev-rules to “grab” the devices you like and create a link in /dev/input/

- Specify a specfic input-device in /etc/X11/xorg.conf which uses the same link as above.
- Use the input device in the ServerLayout section.
- Disable AutoAddDevices in ServerFlags

Then your X-Server should only use the input devices that you want.
