for real this time smb i hope

This commit is contained in:
Adrian Gunnar Lauterer 2024-04-10 16:46:02 +02:00
parent f7bc5bd7b1
commit 0e4a5fb0b6
1 changed files with 6 additions and 14 deletions

View File

@ -8,14 +8,14 @@ services.samba = {
openFirewall = true;
extraConfig = ''
workgroup = WORKGROUP
server string = smbnix
netbios name = smbnix
server string = galadriel
netbios name = galadriel
security = user
#use sendfile = yes
#max protocol = smb2
# note: localhost is the ipv6 localhost ::1
hosts allow = 192.168.1.0/24 127.0.0.1 localhost 100.0.0.0/8
# hosts deny = 0.0.0.0/0
hosts allow = 192.168.1. 127.0.0.1 localhost 100.
hosts deny = 0.0.0.0/0
guest account = nobody
map to guest = bad user
'';
@ -30,20 +30,12 @@ services.samba = {
# "force user" = "username";
# "force group" = "groupname";
# };
Main = {
path = "/Main";
Backup = {
path = "/Main/Backup";
"valid users" = "gunalx";
"force user" = "gunalx";
"force group" = "gunalx";
public = "no";
browseable = "yes";
writeable = "yes";
"fruit:aapl" = "yes";
"fruit:time machine" = "yes";
"vfs objects" = "catia fruit streams_xattr";
"read only" = "no";
"guest ok" = "no";
"create mask" = "0644";