Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
Nächste ÜberarbeitungBeide Seiten der Revision
administration:debian:samba [2016-02-21 09:14] Martin Prochnowadministration:debian:samba [2020-09-06 08:00] 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 +    load printers = no           # Does not load printers from printcap
-    security = user +
-    encrypt passwords = true +
-    invalid users = root +
-    map to guest = bad user +
-    guest account = nobody +
-    load printers = no+
  
-    max xmit 65535 +    security user              # Authentication based on username/password 
-    socket options TCP_NODELAY SO_SNDBUF=65535 SO_RCVBUF=65535+    map to guest bad user      # Unknown users are mapped to guest account 
 +    invalid users root         # Root is not allowed as user 
 +    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 
 + 
 +[User Share] 
 +    valid users = user           # User(s) allowed to access this share 
 +    path = /path/to/user/share 
 +    public = no 
 +    writeable = yes 
 +    comment = Samba share 
 +    printable = no 
 +    guest ok = no 
 +    create mask = 0600 
 +    directory mask = 0700
     veto files = /*lost+found*/     veto files = /*lost+found*/
 </code> </code>
  • Zuletzt geändert: 2022-09-25 12:52