How to setup udev rule to allow read-only permissions on USB devices

Solution Verified - Updated -

Issue

  • On RHEL 5, RHEL 6 and RHEL7, we need guidance on writing a udev rule that would allow read of USB/removable drives/flash drives but restrict write access. Is there a way that RHEL can do with with udev and still allow keyboard/mouse?

Environment

  • Red Hat Enterprise Linux 5, 6, 7
  • USB disks
  • udev

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.