Berbagi Pakai File Dengan Samba

Berikut contoh berbagi pakai file dengan hak akses read only tanpa otentikasi. Sehingga komputer yang berada dalam satu workgroup dapat mengakses tanpa diminta username dan password.

  • Edit konfigurasi samba sehingga seperti dibawah ini.

root@nirmala:~# vim /etc/samba/smb.conf
[global]
netbios name = nirmala
server string = Edubuntu
workgroup = OFFICE
announce version = 5.0
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

passdb backend = tdbsam
security = share
null password = true
username map = /etc/samba/smbusers
name resolve order = hosts wins lmhosts bcast
wins support = yes

printing = CUPS
printcap = CUPS

syslog = 1
syslog only = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
writable = no
guest ok = no
public = no
printable = yes
share modes = no
locking = no

[Musik]
path = /home/cp/Musik
comment = Ini Musik
public = yes
writeable = no
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup

  • Restart samba server

root@nirmala:~# /etc/init.d/samba restart

Leave a Reply

Your email address will not be published. Required fields are marked *