1753727 Members
4565 Online
108799 Solutions
New Discussion юеВ

NFS mount question

 
SOLVED
Go to solution
MikeL_4
Super Advisor

NFS mount question

We have an extry in /etc/exports file for a directory, where a couple of servers have full access to everything under this directory.

Now a have a request for subdirectory under the base that we want everyone to have read access to, but exportfs won't allow an entry complaining that the parent-directory is already exported.

Is there any way to get around this ?
3 REPLIES 3
Ivan Ferreira
Honored Contributor
Solution

Re: NFS mount question

You can export a child directory of an exported parent. Also, if you allow rw access to the parent and suppose that you could export the child as ro, you still have rw acces via the parent directory.

The rw, and ro access in this case is controlled by the file system permissions.

You can mount any subdirectory of an exported file system, if you exported /filesystem, you can run:

mount server:/filesystem/subdir /mnt/nfs

Without problems, but as I said before, remove the write permissions for the files/directories that should not have write access.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
MikeL_4
Super Advisor

Re: NFS mount question

Thanks
Ivan Ferreira
Honored Contributor

Re: NFS mount question

My answer was:

You can export a child directory of an exported parent.

And should be:

You "can't" export a child directory of an exported parent.

But the rest of the answer is correct.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?