Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung Nächste ÜberarbeitungBeide Seiten der Revision | ||
administration:debian:samba [2012-12-17 20:33] – Martin Prochnow | administration:debian:samba [2020-09-06 08:00] – Martin Prochnow | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Samba einrichten ====== | ||
+ | Auf meinem NAS habe ich eine Samba-Freigabe eingerichtet, | ||
+ | Zuerst muss Samba installiert werden: | ||
+ | <code bash> | ||
+ | apt-get install samba samba-common | ||
+ | </ | ||
+ | |||
+ | Jeder Nutzer auf dem Linux-System kann ein Samba-Nutzer sein. Dazu muss er sich mit '' | ||
+ | |||
+ | Hier eine Sample-Konfiguration (''/ | ||
+ | |||
+ | <code text smb.conf> | ||
+ | [global] | ||
+ | workgroup = WORKGROUP | ||
+ | server string = %h, Samba %v # String presented to the client | ||
+ | load printers = no # Does not load printers from printcap | ||
+ | |||
+ | security = user # Authentication based on username/ | ||
+ | map to guest = bad user # Unknown users are mapped to guest account | ||
+ | invalid users = root # Root is not allowed as user | ||
+ | guest account = nobody | ||
+ | |||
+ | # Options to improve read/write performance | ||
+ | socket options = IPTOS_LOWDELAY TCP_NODELAY | ||
+ | use sendfile = yes | ||
+ | write cache size = 262144 | ||
+ | min receivefile size = 16384 | ||
+ | strict allocate = yes | ||
+ | |||
+ | [Guest Share ] | ||
+ | path = / | ||
+ | guest ok = yes | ||
+ | read only = yes # Set to ' | ||
+ | veto files = / | ||
+ | |||
+ | [User Share] | ||
+ | valid users = user # User(s) allowed to access this share | ||
+ | path = / | ||
+ | public = no | ||
+ | writeable = yes | ||
+ | comment = Samba share | ||
+ | printable = no | ||
+ | guest ok = no | ||
+ | create mask = 0600 | ||
+ | directory mask = 0700 | ||
+ | veto files = / | ||
+ | </ | ||
+ | |||
+ | ===== Links ===== | ||
+ | * http:// | ||
+ | |||
+ | {{tag> |