From 4f45d605e109cfe954d48fd9bf21e95f6f666551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Tue, 12 Sep 2023 17:44:17 +0300 Subject: [PATCH] vno1-rp3b: some attempts at samba --- modules/services/jakstpub/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/services/jakstpub/default.nix b/modules/services/jakstpub/default.nix index bdf2c72..7caa9b7 100644 --- a/modules/services/jakstpub/default.nix +++ b/modules/services/jakstpub/default.nix @@ -19,10 +19,11 @@ enable = true; securityType = "user"; enableNmbd = true; - enableWinbindd = false; + enableWinbindd = true; extraConfig = '' + workgroup = WORKGROUP + netbios name = HOMESERV map to guest = Bad User - guest account = jakstpub ''; shares = { public = { @@ -30,6 +31,12 @@ writable = "yes"; printable = "no"; public = "yes"; + "guest ok" = "yes"; + "read only" = "no"; + "create mask" = 666; + "directory mask" = 777; + "force user" = "jakstpub"; + "force group" = "jakstpub"; }; }; };