Mounting a Folder in another Directory

Sometimes you want give users access to directories which they are not able to get to.  An easy way to provide this access would be to just mount the folder right into that directory.  You can do this by using the following command:

mount –bind <orginal directory> <new directory>

You just need to create a folder then run this command to point the original directory you want to be available to the new directory you just created.  Now just keep in mind since this is a mount it will be lost when you reboot unless you add it to fstab.

This entry was posted in Linux and tagged , . Bookmark the permalink.

Leave a Reply