commit 4f45d605e109cfe954d48fd9bf21e95f6f666551 (tree) parent 7891663a6551559abb2280f9b569d92a84c25ffd Author: Motiejus Jakštys <motiejus@jakstys.lt> Date: Tue, 12 Sep 2023 17:44:17 +0300 vno1-rp3b: some attempts at samba Diffstat:
| M | 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 @@ -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"; }; }; };