nas0: allow smb2, add guest reader

This commit is contained in:
41666 2024-07-26 13:11:48 -04:00
parent 1ba0b32b4b
commit 22aa481c91

View file

@ -36,7 +36,7 @@
hosts allow = 10.0.0.0/8 100.64.0.0/10 127.0.0.1 localhost hosts allow = 10.0.0.0/8 100.64.0.0/10 127.0.0.1 localhost
hosts deny = 0.0.0.0/0 hosts deny = 0.0.0.0/0
server smb encrypt = required server smb encrypt = required
server min protocol = SMB2_00 server min protocol = SMB2
''; '';
shares."main" = { shares."main" = {
path = "/mnt/storage/main"; path = "/mnt/storage/main";
@ -48,6 +48,12 @@
"force user" = "data"; "force user" = "data";
"force group" = "data"; "force group" = "data";
}; };
shares."pub" = {
path = "/mnt/storage/main/public";
browseable = "yes";
writable = "false";
"guest ok" = "yes";
};
}; };
# Advertise to local Windows hosts # Advertise to local Windows hosts