How do I access a file or directory from outside a chrooted environment?

Updated -

When configuring a chroot environment users are locked in the chrooted directory and are not able to access files outside it.

Sometimes specific directories outside the chrooted environment need to be accessible. The solution is to mount the needed directory with the --bind parameter that remount a subtree somewhere else (so that its contents are available in both places).<...>

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