fix: smb make shit executable
This commit is contained in:
parent
759eb7641d
commit
a24ab5a6a7
|
@ -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}";
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue