Is there any way to force a file creation with execute permission (x) by default ?

Solution Verified - Updated -

Issue

  • Is there any way to force a file creation with execute permission (x) by default ?

  • There is an application which creates files as an application user and there is a requirement that files need executable bit. Is there any way to force a file creation with execute permission by default ?

  • How to set umask for an user such that new files created by that user are with executable permission by default ?

Environment

  • Red Hat Enterprise Linux

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