Skip to content

Konfigurasi Samba Server

January 18, 2010

Ini topik yang sudah sangat lama. Saking lamanya, hari ini saya kesulitan mengkonfigurasi samba server untuk sharing folder di jaringan microsoft windows. Karena lupa, perlu waktu lebih dari 15 menit untuk sekedar sharing folder. Alhamdulillah, setelah googling akhirnya bisa juga sharing folder ke teman yang pake microsoft windows.

Agar tidak perlu googling lagi kalau nanti harus konfigurasi samba server, kepikiran naruh konfigurasinya di blog ini🙂 sekalian mudah-mudahan bisa jadi bantuan buat teman-teman yang baru kenal samba.

Berikut ini adalah contoh konfigurasi samba, biasanya di file “/etc/samba/smb.conf”.

[global]
 workgroup = IDT
 passdb backend = tdbsam
 printing = cups
 printcap name = cups
 printcap cache time = 750
 cups options = raw
 map to guest = Bad User
 include = /etc/samba/dhcp.conf
 logon path = \\%L\profiles\.msprofile
 logon home = \\%L\%U\.9xprofile
 logon drive = P:
 usershare allow guests = Yes
 add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
 domain logons = No
 domain master = No
 netbios name = idt-samba
 security = share
 guest account = nobody
 wins support = No
 usershare max shares = 100
 wins server =
[homes]
 comment = Home Directories
 valid users = %S, %D%w%S
 browseable = No
 read only = No
 inherit acls = Yes
[profiles]
 comment = Network Profiles Service
 path = %H
 read only = No
 store dos attributes = Yes
 create mask = 0600
 directory mask = 0700
[users]
 comment = All users
 path = /home
 read only = No
 inherit acls = Yes
 veto files = /aquota.user/groups/shares/
[groups]
 comment = All groups
 path = /home/groups
 read only = No
 inherit acls = Yes
[printers]
 comment = All Printers
 path = /var/tmp
 printable = Yes
 create mask = 0600
 browseable = No
[print$]
 comment = Printer Drivers
 path = /var/lib/samba/drivers
 write list = @ntadmin root
 force group = ntadmin
 create mask = 0664
 directory mask = 0775
[Guest Share]
 comment = Miliknya Kang Heru
 path = /zonshare/download/heru
 read only = yes
 browseable = yes
 guest ok = yes

Perhatikan yang dicetak berwarna hijau.

Semoga bermanfaat.

From → Iptek, Opini, Renungan

2 Comments
  1. henry kurniawan permalink

    kok kalo saya ngopy file dr windows atau create folder baru access denied???saya bingung

    • pastikan ada baris script berikut di /etc/samba/smb.conf pada bagian folder yang dishare :
      writeable = yes
      create mask = 0777
      directory mask = 0777

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: