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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content