Usage: stratum fileserver <action> [arguments]   (module type: service)

Shared folders with Samba (Windows, macOS, Linux; port 445) and NFS (Linux,
Unix; NFSv4 port 2049). Shares, users, groups and permissions in one place;
the folder permissions are set with POSIX ACLs, the firewall rules (with
stratum-firewall) follow the shares.

Service:
  status                    state, settings, shares, users, groups
  start | stop              Samba / NFS now (boot setting unchanged)
  enable | disable          on and at boot / off and not at boot
  restart                   write the configuration again and restart
  apply                     write the configuration again and reload
  toggles protocols | set protocols [smb] [nfs]    which servers run

Shares:
  shares                    list
  share-add <name> <path> [smb|nfs|both]   new share (folder created when missing)
  share-remove <name>       remove the share (the folder and files stay)
  share <name> [show]       the settings of a share
  share <name> set <key> <value>:
      write "<user|@group> ..."   read and write access
      read "<user|@group> ..."    read access
      guest no|read               guests without password may read (Samba)
      smb yes|no | nfs yes|no     protocols of this share
      nfs-clients "<net>:rw|ro ..."   e.g. "10.0.0.0/24:rw 10.0.0.5:ro"
      nfs-squash root|all|none    map root (or everybody) of the client to nobody
      comment "<text>" | browseable yes|no | recycle yes|no|""

Users and groups:
  users                     users of the shares
  user-add <name>           new user only for file sharing (no login); the
                            password is asked (or read from stdin, twice)
  user-enable <name>        an existing system user gets a Samba password
  user-passwd <name>        change the Samba password
  user-remove <name>        remove access (and the user, if made by user-add)
  groups | group-add <name> | group-remove <name>   groups share-<name>
  group-member <group> add|remove <user>

  connections               who is connected now

Settings (setting <key> <value>):
  workgroup <NAME>          Samba workgroup (default WORKGROUP)
  server-name <name>        name in the network (default: host name)
  smb-min SMB2|SMB3         oldest Samba protocol allowed
  nfs-versions 4|3,4        NFSv4 only (one port) or also NFSv3
  recycle yes|no            recycle bin .recycle/<user> (default for shares)
  access local|any|"<net> ..."   who may connect (firewall rules)

Files:
  /etc/stratum/fileserver.conf, /etc/stratum/fileserver.d/<share>.share
  /etc/samba/stratum-global.conf, /etc/samba/stratum-shares.conf (included in smb.conf)
  /etc/exports.d/stratum.exports, /etc/nfs.conf.d/90-stratum.conf
  /etc/stratum/firewall.d/fileserver.rules
