Skip to content

Instantly share code, notes, and snippets.

@matthiasg
Created December 2, 2021 12:07
Show Gist options
  • Save matthiasg/4275ce1387fb07bec8159244d26a294c to your computer and use it in GitHub Desktop.
Save matthiasg/4275ce1387fb07bec8159244d26a294c to your computer and use it in GitHub Desktop.
NFS Share Smartos NFS

First create a share zfs create zones/camera

Share with access to all intranet pcs with write access as root

zfs set sharenfs='sec=none,rw=*,anon=0' zones/camera

Note: sec=none must PRECEED any following option see man share_nfs

   Each sec= option specifies modes that apply to any
   subsequent window=, rw, ro, rw=, ro=, and root=
   options that are provided before another sec= option.
   Each additional sec= resets the security mode
   context, so that more window=, rw, ro, rw=, ro=, and
   root= options can be supplied for additional modes.

When the nobody user is supposed to be used use: zfs set sharenfs='sec=none,rw=*' zones/camera

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment