fix: smb make shit executable

This commit is contained in:
Patrick Großmann 2024-01-15 21:46:10 +01:00
parent 759eb7641d
commit a24ab5a6a7
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 7 additions and 1 deletions

View file

@ -72,6 +72,10 @@
"server min protocol = SMB3_11" "server min protocol = SMB3_11"
# Require native SMB transport encryption by default. # Require native SMB transport encryption by default.
"server smb encrypt = required" "server smb encrypt = required"
# Do not map the executable bit to anything
"map archive = no"
"map system = no"
"map hidden = no"
# Disable printer sharing. By default Samba shares printers configured # Disable printer sharing. By default Samba shares printers configured
# using CUPS. # using CUPS.
@ -94,7 +98,7 @@
"#persistRoot" = persistRoot; "#persistRoot" = persistRoot;
"read only" = "no"; "read only" = "no";
"guest ok" = "no"; "guest ok" = "no";
"create mask" = "0640"; "create mask" = "0740";
"directory mask" = "0750"; "directory mask" = "0750";
"force user" = "${user}"; "force user" = "${user}";
"force group" = "${group}"; "force group" = "${group}";

View file

@ -82,6 +82,8 @@ in {
++ [ ++ [
"uid=${toString uid}" "uid=${toString uid}"
"gid=${toString gid}" "gid=${toString gid}"
"file_mode=0600"
"dir_mode=0700"
"credentials=${cfg.credentials}" "credentials=${cfg.credentials}"
] ]
++ (optional (!cfg.automatic) "noauto"); ++ (optional (!cfg.automatic) "noauto");