From 75650e333dc967aa781a440b4b0568f19a8c9d98 Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 9 Jun 2024 00:20:26 +0200 Subject: samba formatting --- nix/hosts/lampadas/configuration.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'nix/hosts') diff --git a/nix/hosts/lampadas/configuration.nix b/nix/hosts/lampadas/configuration.nix index 8659c7c..2130794 100644 --- a/nix/hosts/lampadas/configuration.nix +++ b/nix/hosts/lampadas/configuration.nix @@ -72,7 +72,7 @@ in { }; emile = { isNormalUser = true; - extraGroups = [ "wheel" ]; + extraGroups = [ "wheel" "samba-guest" ]; openssh.authorizedKeys.keys = emile_keys; }; samba-guest = { @@ -136,7 +136,7 @@ in { workgroup = WORKGROUP server string = lampadas netbios name = lampadas - security = user + security = user hosts allow = 100.64.0.0/255.192.0.0, 127.0.0.1/255.0.0.0, ::1, 192.168.0., 192.168.1. hosts deny = 0.0.0.0/0 guest account = samba-guest @@ -159,9 +159,12 @@ in { "browseable" = "yes"; "read only" = "no"; "guest ok" = "yes"; + "guest only" = "yes"; + "available" = "yes"; "create mask" = "0644"; "directory mask" = "0755"; "comment" = "public data"; + "writable" = "yes"; }; private = { path = "/data/private"; -- cgit 1.4.1