Hi,
I'll try to keep the scenario as simple as possible, just what I need, and leave out all the other things that didn't work while experimenting with nfs.
I have the following working:
This "works" - I can mount (from a linux machine) with
or
... and also with
exports(5)
Thank you very much. So...?
Now, as the directory names suggest, I tried this:
Nothing changed, I can still mount everything from any machine (IP).
exports(5)
Main question: how can I restrict priv?
Side question 1: why can I mount exports?
Side question 2: why doesn't this work (just that line changed from above):
/ is on zfs... (does it matter? I read exports(5)... several times... can't say I understood half of it.), pub and priv are just 2 directories and I exported both. (question 17: why does the filesystem matter to a network service?)
I'll try to keep the scenario as simple as possible, just what I need, and leave out all the other things that didn't work while experimenting with nfs.
I have the following working:
Code:
# /etc/exports
V4: /
/exports/pub
/exports/priv
This "works" - I can mount (from a linux machine) with
mount [-t nfs4] server:/exports/pub dir
or
mount server:/exports/priv dir
... and also with
mount server:/exports dir
, even though I have no -alldirs
?!exports(5)
NFSv4 does not use the mount
protocol and does permit clients to cross server mount point boundaries,
although not all clients are capable of crossing the mount points.
Thank you very much. So...?
Now, as the directory names suggest, I tried this:
Code:
# /etc/exports
V4: /
/exports/pub
/exports/priv 192.168.1.123
Nothing changed, I can still mount everything from any machine (IP).
exports(5)
So I'm in "third form" and and "administrative controls" should be applied... or not?[...] Because NFSv4 does not use the mount
protocol, the “administrative controls” are not applied and all
directories within this server file system are mountable via NFSv4 even
if the -alldirs flag has not been specified. The third form has the
string ``V4:'' followed [...]
Main question: how can I restrict priv?
Side question 1: why can I mount exports?
Side question 2: why doesn't this work (just that line changed from above):
Code:
V4: /exports