Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
administration:debian:samba [2016-02-21 09:14] Martin Prochnowadministration:debian:samba [2018-09-08 14:24] Martin Prochnow
Zeile 7: Zeile 7:
 </code> </code>
  
-Ich habe hier in meinem Heimnetz keine Bedarf an Passwortschutzdaher habe ich die Freigabe so eingerichtet, dass jeder darauf zugreifen kann+Jeder Nutzer auf dem Linux-System kann ein Samba-Nutzer sein. Dazu muss er sich mit ''smbpasswd'' ein Samba-Passwort geben. 
 + 
 +Hier eine Sample-Konfiguration (''/etc/samba/smb.conf'') ohne Druckermit Guest-Share und einem User-Share. 
 <code text smb.conf> <code text smb.conf>
 [global] [global]
-    workgroup = WORKGROUP +    workgroup = WORKGROUP        # Name of workgroup the server will appear in 
-    server string = %h server (Samba, Debian) +    server string = %hSamba %v # String presented to the client 
-    wins support = no +    security = user              # Authentication passed on username/password 
-    security = user +    invalid users = root         # Root is not allowed as user 
-    encrypt passwords = true +    load printers = no           # Does not load printers from printcap
-    invalid users = root +
-    map to guest = bad user +
-    guest account = nobody +
-    load printers = no+
  
-    max xmit 65535 +    map to guest bad user      # Unknown user are mapped to guest account 
-    socket options TCP_NODELAY SO_SNDBUF=65535 SO_RCVBUF=65535+    guest account nobody       # User for guest account
  
-[Disks] +    # Options to improve read/write performance 
-    comment Mounted disks +    socket options IPTOS_LOWDELAY TCP_NODELAY 
-    public = yes +    use sendfile = yes 
-    path /mnt +    write cache size 262144 
-    writable = yes+    min receivefile size = 16384 
 +    strict allocate = yes 
 + 
 +[Guest Share ] 
 +    path = /path/to/guest/share
     guest ok = yes     guest ok = yes
-    create mask = 0666 +    read only = yes              # Set to 'no' to grant write access to share 
-    directory mask = 0777 +    veto files = /*lost+found*/  # Hide certain files and directories 
-    veto files = /*lost+found*/+ 
 +[User Share] 
 +    valid users = user           # User(s) allowed to access this share 
 +    path = /path/to/user/share 
 +    read only = no               # User has write access to share 
 +    create mask = 0600           # Rights for newly created files 
 +    directory mask = 0700        # Rights for newly created directories 
 +    veto files = /*lost+found*/  # Hide certain files and directories
 </code> </code>
  
  • Zuletzt geändert: 2022-09-25 12:52