From f760a9e002210e1c0c6a2fe064651e6f8ec0c19f Mon Sep 17 00:00:00 2001 From: dadada Date: Tue, 16 Mar 2021 14:27:05 +0100 Subject: [PATCH] Make NFS share readonly --- modules/fileShare.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/fileShare.nix b/modules/fileShare.nix index d16e517..e8b8907 100644 --- a/modules/fileShare.nix +++ b/modules/fileShare.nix @@ -19,7 +19,7 @@ in workgroup = WORKGROUP server string = media netbios name = media - security = user + security = user #use sendfile = yes #max protocol = smb2 hosts allow = ${allow} localhost @@ -31,7 +31,7 @@ in public = { path = sharePath; browseable = "yes"; - "read only" = "no"; + "read only" = "yes"; "guest ok" = "yes"; "create mask" = "0644"; "directory mask" = "0755";