Restricting script execution using the "noexec" mount option

Solution Verified - Updated -

Issue

  • I want to restrict users so they cannot execute any script within their home directory while allowing execution elsewhere if permitted
  • What are the limitations of using the noexec mount option to restrict script execution?

Environment

Red Hat Enterprise Linux 7 and later
- noexec mount option

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