On Dec 17, 2010, at 11:09 PM, Geoff Nordli wrote:

> I am trying to configure a system where I have two different NFS shares
> which point to the same directory.  The idea is if you come in via one path,
> you will have read-only access and can't delete any files, if you come in
> the 2nd path, then you will have read/write access.
> 
> For example, create the read/write nfs share:
> 
> zfs create tank/snapshots
> zfs set sharenfs=on tank/snapshots

"on" by default sets the NFS share parameters to: "rw"
You can set specific NFS share parameters by using a string that 
contains the parameters.  For example, 

        zfs set sharenfs=rw=192.168.12.13,ro=192.168.12.14 my/file/system

sets readonly access for host 192.168.12.14 and read/write access
for 192.168.12.13.

For more info see the man page for share_nfs(1m)
 -- richard

> 
> r...@grok-zfs1:/# sharemgr show -vp
> default nfs=()
> zfs
>    zfs/tank/snapshots nfs=()
>          /tank/snapshots
> 
> 
> I have had some luck doing it with Samba. 
> 
> Any pointers to making it work with NFS? 
> 
> Thanks,
> 
> Geoff 
> 
> 
> 
> 
> 
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to