Samba4 Installation: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
|||
| Zeile 21: | Zeile 21: | ||
</pre> | </pre> | ||
== | ==guest share== | ||
*mkdir /var/samba | *mkdir /var/samba | ||
*chmod 777 /var/samba/ | *chmod 777 /var/samba/ | ||
| Zeile 39: | Zeile 39: | ||
guest ok = yes | guest ok = yes | ||
</pre> | |||
==shared share== | |||
<pre> | |||
[share] | |||
comment = Guest Share | |||
path = /mnt/share | |||
browseable = yes | |||
read only = no | |||
create mask = 0777 | |||
directory mask = 0777 | |||
</pre> | </pre> | ||
Version vom 30. Oktober 2018, 11:57 Uhr
Installation
- apt-get install samba
Konfiguration
User anlegen
Um einen samba user anzulegen wird ein user auf dem system benötigt (useradd). Anschließend muss dem gewünschtem user ein samba passwort gegeben werden
- smbpasswd -a username
Unter
- vi /etc/samba/smb.conf
folgende Zeilen einfügen:
[homes] comment = Home Directories browseable = yes read only = no create mask = 0700 directory mask = 0700 valid users = %S
- mkdir /var/samba
- chmod 777 /var/samba/
unter
- vi /etc/samba/smb.conf
folgende Zeilen einfügen:
[public] comment = public anonymous access path = /var/samba/ browsable =yes create mask = 0660 directory mask = 0771 writable = yes guest ok = yes
[share] comment = Guest Share path = /mnt/share browseable = yes read only = no create mask = 0777 directory mask = 0777