Is it possible to restrict access to a specific user when file or directory permission is 777?

Solution Verified - Updated -

Issue

  • If there's a file with permission 777, then the unprivileged user will be able to modify it. We want to avoid that.
  • How to restrict access to a specific user or group when file or directory permission is 777?
  • How to remove a user's permission from a directory that has full access to 'other'?

Environment

  • Red Hat Enterprise Linux (RHEL)
    • 6
    • 7

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