Laman

share folder dengan samba di ubuntu

untuk share folder di linux dengan cara menginstall samba dengan perintah :

sudo apt-get install samba

setelah selesai silahkan edit file config samaba di /etc/samba/smb.conf , sebelum mengedit backup terlebih dahulu config tersebut dengan perintah

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup

setelah itu kita rubah config dengan perintah sebagai berikut :


#==============================================
[global]
workgroup = WORKGROUP
server string = %h server (Samba,Ubuntu)
security = user
bind interfaces only = yes
map to guest = Bad User
obey pam restrictions = Yes
passdb backend = tdbsam
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = no
panic action = /usr/share/samba/panic-action %d
invalid users = root
wins support = yes
username map = /etc/samba/smbusers
name resolve order = wins bcast hosts
domain logons = yes
preferred master = yes


[APP]
path = /home/APP
writeable = yes
;browseable = yes
guest ok = no
create mask = 0600
directory mask = 0700

#========================================

untuk teks yang berwana merah anda bisa copy untuk shared file yang diinginkan , jangan lupa restart samba jika setiap selesai edit confignya

sudo service smbd restart

terakhir tambah user samba dengan ketikan perintah

sudo smbpasswd -a namauser

selesai