Samba4 Installation: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 32: Zeile 32:
 
[public]
 
[public]
 
   comment = public anonymous access
 
   comment = public anonymous access
   path = /var/samba/
+
   path = /mnt/guest-share/
 
   browsable =yes
 
   browsable =yes
 
   create mask = 0660
 
   create mask = 0660

Version vom 30. Oktober 2018, 11:58 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

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

guest share

  • mkdir /mnt/share
  • chmod 777 /mnt/share/

unter

  • vi /etc/samba/smb.conf

folgende Zeilen einfügen:

[public]
  comment = public anonymous access
  path = /mnt/guest-share/
  browsable =yes
  create mask = 0660
  directory mask = 0771
  writable = yes
  guest ok = yes

shared share

[share]
   comment = Guest Share
   path = /mnt/share
   browseable = yes
   read only = no
   create mask = 0777
   directory mask = 0777