SAMBA Server: Unterschied zwischen den Versionen
(Die Seite wurde neu angelegt: „==Installation== <syntaxhighlight lang="bash"> sudo apt-get install samba-common samba #Hilfreiche Pakete sudo apt-get install samba-doc tdb-tools </syntaxhi…“) |
K (Crimson verschob die Seite SAMBA nach SAMBA Server) |
(kein Unterschied)
|
Version vom 26. Juni 2018, 17:44 Uhr
Inhaltsverzeichnis
Installation
sudo apt-get install samba-common samba
#Hilfreiche Pakete
sudo apt-get install samba-doc tdb-tools
Konfiguration
#Standard Konfiguratinsdatei sichern
sudo mv /etc/samba/smb.conf /etc/samba/smb.bak
#Config bearbeiten
sudo nano /etc/samba/smb.conf
Änderungen in der Konfigurationsdatei:
[global]
workgroup = home
server string = %h
security = user
passdb backend = tdbsam
unix password sync = no
invalid users = root
#bind interfaces only = yes
#interfaces = 192.168.0.0/24 127.0.0.1
hosts allow = 192.168.0.70
map to guest = never
logging = syslog@1 /var/log/samba/log.%m
[storage]
valid users = @asatru
path = /mnt/storage/
browseable = yes
writeable = yes
force group = +asatru
guest ok = no
create mask = 0666
directory mask = 0777
printable = no
Schreib- und Leserechte gewähren:
sudo chmod -R 0777 /mnt/storage/
#Samba neustarten
sudo service smbd restart
Konfiguration testen:
sudo testparm
Benutzerverwaltung
Die Benutzerverwaltung von Samba ist von der Benutzerverwaltung des Systems getrennt. Im System angelegte Benutzer zu Samba hinzufügen:
sudo smbpasswd -a crimson
#Crimson muss hier Mitglied der Gruppe asatru sein
sudo adduser crimson asatru