Why do some Linux admins bind their folders to
/export before exposing them via NFS (through
Why not just point /etc/exports to the directory you want to expose via NFS?
closed as off-topic by allquixotic, Heptite, Kevin Panko, warren, Moses Apr 7 '14 at 1:31
It's a matter of convention, like almost all file path related stuff.
One technical reason might be that you can configure the discretionary access controls for the top-level directory of a bind, separately from where it's mounted from. That means if you have a disk partition or image mounted to
But if that sort of thing happens not to be needed in a specific environment where things are bound on
The choice of how to lay out folders and mount points on disk is influenced by:
Safety reasons. Since NFS will by default not export content beyond filesystem boundaries you add an additional layer of data security when bind-mounting the to-be-exported directory do a special location.