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 in any way<...>

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