zfs sharenfs and host restriction
807557May 14 2009 — edited May 21 2009Hello guys/gals,
i've been googling/searching Sun forums for a half a day now and still can't figure out my problem. I have a simple task at hand where i need to export and zfs volume via NFS to a particular host. I want to make sure that this is the only host that can connect to this export. So my syntax is:
zfs set sharenfs=rw=192.168.1.30 tank/accounting
so now i am going to my linux host (192.168.1.30) and try to mount the export:
mount 192.168.1.20:/tank/accounting /accounting
mount: 192.168.1.20:/tank/accounting /accounting failed, reason given by server: Permission denied
If i simply run:
zfs set sharenfs=on tank/accounting
it works fine, i count mount export ok.
While one the linux client i can run "showmount -e 192.168.1.20" and can see my export listed just fine.
/tank/accounting
What am i doing wrong ?
Thanks a bunch