From 36efb6de5b05929aeb474e9b4164bde04a0ba46d Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Thu, 29 Aug 2024 10:14:17 -0400 Subject: [PATCH] mauville: improve samba permissions --- hosts/mauville/default.nix | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/hosts/mauville/default.nix b/hosts/mauville/default.nix index dcc84d0d..15dadc78 100644 --- a/hosts/mauville/default.nix +++ b/hosts/mauville/default.nix @@ -66,23 +66,27 @@ in { shares = { Media = { + "create mask" = "0755"; + "directory mask" = "0755"; + "force group" = "users"; + "force user" = "aly"; + "guest ok" = "yes"; + "read only" = "no"; browseable = "yes"; comment = "Media @ ${config.networking.hostName}"; path = mediaDirectory; - "read only" = "no"; - "guest ok" = "yes"; - "create mask" = "0755"; - "directory mask" = "0755"; }; Archive = { + "create mask" = "0755"; + "directory mask" = "0755"; + "force group" = "users"; + "force user" = "aly"; + "guest ok" = "yes"; + "read only" = "no"; browseable = "yes"; comment = "Archive @ ${config.networking.hostName}"; path = archiveDirectory; - "create mask" = "0755"; - "directory mask" = "0755"; - "guest ok" = "yes"; - "read only" = "no"; }; }; };