Home » Questions » Computers [ Ask a new question ]

Aliasing NFS export path

Aliasing NFS export path

Is there a way to define an alias for a NFS-exported directory directly inside /etc/exports (without using a symlink)?

Asked by: Guest | Views: 304
Total answers/comments: 1
Guest [Entry]

"You could use mount -t bind to create the ""alias"". ie

mount -t bind /home/username/nfsdir /myalias

and then export /myalias.

To make this permanent, add the following line to your /etc/fstab

/home/username/nfsdir /myalias bind bind 0 0"