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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.