Samba Grundinstallation (Linux): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 19: Zeile 19:


<pre>
<pre>
  ...
#======================= Global Settings ====================
 
[global]
[global]
   ...
   ...
   workgroup = ARBEITSGRUPPE
   workgroup = ARBEITSGRUPPE
  guest account = nobody
  ...
#======================= Share Definitions ==================
  ...
  create mask = 0660
   
  directory mask = 0770
   ...
   ...


[public]
  path = /home/media/public
  comment = Lerox 2 Public Share
  force user = nobody
  public = yes
  guest ok = yes
  browsable = yes
  writeable = yes


[nobackup]
  path = /home/media/nobackup
  public = no
  browsable = no
  writeable = yes
</pre>
</pre>



Version vom 25. Oktober 2016, 16:23 Uhr

Noch in Bearbeitung


Installation

sudo apt-get install samba-common samba samba-doc samba-doc-pdf tdb-tools 

Konfiguration

sudo chown nobody:nogroup /home/media/public/
sudo vi /etc/samba/smb.conf
#======================= Global Settings ====================

[global]
   ...
   workgroup = ARBEITSGRUPPE

   guest account = nobody
   ...

#======================= Share Definitions ==================

   ...
   create mask = 0660		
			     
   directory mask = 0770	
   ...

[public]
   path = /home/media/public
   comment = Lerox 2 Public Share	
   force user = nobody
   public = yes	
   guest ok = yes	
   browsable = yes	
   writeable = yes	

[nobackup]
   path = /home/media/nobackup
   public = no
   browsable = no	
   writeable = yes


sudo service smbd restart
sudo service samba restart
/etc/init.d/samba reload 

Benutzeradministration

Alle Benutzer in der Datenbank auflisten:

pdbedit -L

Benutzer hinzufügen bzw. Passwort ändern:

sudo smbpasswd -a <username>

Debugging

ls -la /var/log/samba/log.*

KennwortgeschuetzteFreigabenAusschalten.jpg

Windows 10

Benutzer guest verwenden


Links

https://www.thomas-krenn.com/de/wiki/Einfache_Samba_Freigabe_unter_Debian

https://wiki.ubuntuusers.de/Samba_Server/

https://www.samba.org/samba/docs/man/manpages/pdbedit.8.html


Zurück zu Samba