Samba4 Installation

Aus xinux.net
Zur Navigation springen Zur Suche springen

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

privat share

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

public share

  • mkdir /var/samba
  • chmod 777 /var/samba/

unter

  • vi /etc/samba/smb.conf

folgendes eintragen:

[public]
  comment = public anonymous access
  path = /var/samba/
  browsable =yes
  create mask = 0660
  directory mask = 0771
  writable = yes
  guest ok = yes