Samba Grundinstallation (Linux): Unterschied zwischen den Versionen
		
		
		
		
		
		Zur Navigation springen
		Zur Suche springen
		
				
		
		
	
| (12 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
{{note|Noch in Bearbeitung}}  | {{note|Noch in Bearbeitung}}  | ||
== Installation ==  | == Installation ==  | ||
| Zeile 8: | Zeile 9: | ||
== Konfiguration ==  | == Konfiguration ==  | ||
<pre>  | |||
sudo addgroup --system --no-create-home --disabled-login --gid 132 --group company  | |||
</pre>  | |||
<pre>  | |||
sudo adduser --system --no-create-home --disabled-login --uid 132 --ingroup company company  | |||
</pre>  | |||
<pre>  | <pre>  | ||
| Zeile 18: | Zeile 28: | ||
<pre>  | <pre>  | ||
#======================= Global Settings ====================  | |||
[global]  | [global]  | ||
    ...  |     ...  | ||
    workgroup = ARBEITSGRUPPE  |     workgroup = ARBEITSGRUPPE  | ||
   guest account = nobody  | |||
   security = share  | |||
    ...  |     ...  | ||
#======================= Share Definitions ==================  | |||
   ...  | |||
   create mask = 0660		  | |||
   directory mask = 0770	  | |||
   ...  | |||
[public]  | |||
   path = /home/media/public  | |||
   comment = Public Share	  | |||
   force user = nobody  | |||
   public = yes	  | |||
   guest ok = yes	  | |||
   browsable = yes	  | |||
   writeable = yes	  | |||
[nobackup]  | |||
   path = /home/media/nobackup  | |||
   comment = No Backup  | |||
   public = no  | |||
   browsable = no	  | |||
   writeable = yes  | |||
</pre>  | |||
<pre>  | |||
sudo service smbd restart  | |||
</pre>  | |||
<pre>  | |||
sudo service samba restart  | |||
</pre>  | |||
<pre>  | |||
/etc/init.d/samba reload   | |||
</pre>  | |||
== Benutzeradministration ==  | |||
Alle Benutzer in der Datenbank auflisten:  | |||
<pre>  | |||
sudo pdbedit -L  | |||
</pre>  | |||
Benutzer hinzufügen bzw. Passwort ändern:  | |||
<pre>  | |||
sudo smbpasswd -a <username>  | |||
</pre>  | </pre>  | ||
| Zeile 32: | Zeile 94: | ||
ls -la /var/log/samba/log.*  | ls -la /var/log/samba/log.*  | ||
</pre>  | </pre>  | ||
[[Datei:KennwortgeschuetzteFreigabenAusschalten.jpg]]  | |||
=== Windows 10 ===  | |||
Benutzer ''guest'' verwenden  | |||
== Links ==  | == Links ==  | ||
| Zeile 38: | Zeile 107: | ||
[https://wiki.ubuntuusers.de/Samba_Server/ https://wiki.ubuntuusers.de/Samba_Server/]  | [https://wiki.ubuntuusers.de/Samba_Server/ https://wiki.ubuntuusers.de/Samba_Server/]  | ||
[https://www.samba.org/samba/docs/man/manpages/pdbedit.8.html https://www.samba.org/samba/docs/man/manpages/pdbedit.8.html]  | |||
Zurück zu [[Samba (Linux)|Samba]]  | Zurück zu [[Samba (Linux)|Samba]]  | ||
Aktuelle Version vom 30. Oktober 2016, 10:51 Uhr
Noch in Bearbeitung
Installation
sudo apt-get install samba-common samba samba-doc samba-doc-pdf tdb-tools
Konfiguration
sudo addgroup --system --no-create-home --disabled-login --gid 132 --group company
sudo adduser --system --no-create-home --disabled-login --uid 132 --ingroup company company
sudo chown nobody:nogroup /home/media/public/
sudo vi /etc/samba/smb.conf
#======================= Global Settings ==================== [global] ... workgroup = ARBEITSGRUPPE guest account = nobody security = share ... #======================= Share Definitions ================== ... create mask = 0660 directory mask = 0770 ... [public] path = /home/media/public comment = Public Share force user = nobody public = yes guest ok = yes browsable = yes writeable = yes [nobackup] path = /home/media/nobackup comment = No Backup 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:
sudo pdbedit -L
Benutzer hinzufügen bzw. Passwort ändern:
sudo smbpasswd -a <username>
Debugging
ls -la /var/log/samba/log.*
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
