Samba Server installieren und konfigurieren ist sehr gut und ausführlich im Ubuntu Wiki dokumentiert.
Code: Select all
sudo apt-get install samba-common samba smbclient cifs-utils keyutils tdb-tools
Code: Select all
adduser --no-create-home --disabled-login --shell /bin/false <username>
Code: Select all
sudo smbpasswd -a <username>
Code: Select all
vim /etc/samba/smb.conf
Code: Select all
[global]
workgroup = Workgroup
# Windows XP Support begin
client min protocol = NT1
server min protocol = NT1
lanman auth=yes
ntlm auth=yes
# end
server string = %h server (Samba, Ubuntu)
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
unix extensions = no
name resolve order = lmhosts host wins bcast
security = user
encrypt passwords = true
invalid users = root
[Share]
path = /home/<benutzer>/Share
available = yes
browseable = yes
guest ok = no
writeable = yes
force user = <smb_benutzer>
Samba Server Konfigurationstest
Code: Select all
testparm
Code: Select all
sudo service smbd restart
Code: Select all
client min protocol = NT1
server min protocol = NT1
Code: Select all
sudo chmod 777 -R /home/<benutzer>/Share
Code: Select all
sudo mount -t cifs -o vers=3.0,username=<benutzer>,password=<passwort> //<server_ip>/<folder> /home/<benutzer>/Share