How do I setup an environment where users can only access their home directories?

Updated -

This requires the use of a restricted bash shell. It is identical to a bash shell except the following is not allowed:

  • Changing directories with cd

  • Setting or changing environment variables

  • Redirecting output with >, >|, <>, >&, &>, and >>

  • Turning off or bypassing restricted mode...

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