Install Samba Server di Openwrt


paket yang dibutuhkan
– luci-app-samba
– samba36-server
– ntfs-3g

1. pertama edit “/etc/config/firewall”
# vi /etc/config/firewall

————————————————-
config rule
option src lan
option proto udp
option dest_port 137-138
option target ACCEPT
config rule
option src lan
option proto tcp
option dest_port 139
option target ACCEPT
config rule
option src lan
option proto tcp
option dest_port 445
option target ACCEPT
————————————————–

2. rubah file “smb.conf.template” di folder “/etc/config/samba” menjadi “smb.conf” kemudian isi
[global]
netbios name = |NAME|
workgroup = |WORKGROUP|
server string = |DESCRIPTION|
syslog = 10
encrypt passwords = true
passdb backend = smbpasswd
obey pam restrictions = yes
socket options = TCP_NODELAY
unix charset = ISO-8859-1
local master = yes
preferred master = yes
os level = 20
security = share
guest account = nobody
invalid users = root
smb passwd file = /etc/samba/smbpasswd

3. tambahkan kode dibawah di /etc/config/samba
config ‘samba’
option ‘name’ ‘openwrt’
option ‘description’ ‘openwrt’
option ‘workgroup’ ‘WORKGROUP’

config ‘sambashare’
option ‘read_only’ ‘no’
option ‘create_mask’ ‘0700’
option ‘dir_mask’ ‘0700’
option ‘name’ ‘samba’
option ‘path’ ‘/mnt/sdb2’ <==== sesuaikan dengan drive yg mau diakses
option 'guest_ok' 'yes

4. tambahkan baris berikut, ke "/etc/rc.local" :

—————————————————

smbd -D
nmbd -D

exit 0

—————————————————

5. ketik perintah berikut pada "putty" :
/etc/init.d/samba enable
/etc/init.d/samba start

6. Akses dengan ketik ip router pada alamat windows explorer
hehe

sumber : http://www.facebook.com/groups/openwrt/

Iklan

Satu pemikiran pada “Install Samba Server di Openwrt

  1. Ping balik: OpenWRT + Motion + Mjpg_streamer = Sistem CCTV Sederhana | Sukabiru | Blog

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s