Home --> Konfigurasi file Server dan Print Server menggunakan Samba
Konfigurasi file Server dan Print Server menggunakan Samba PDF Print E-mail
Written by xybyte   

Menginstall Samba

Cek dulu apakah samba telah terinstall

root@kreatif # rpm –qa | grep samba

jika responnya seperti ini :

samba-<disesuaikan dgn versi>
samba-client-<disesuaikan dgn versi>
samba-common-<disesuaikan dgn versi>

jika tidak ada respon maka mari kita menginstall-nya :
file-file yang diperlukan samba dapat di download di sini

root@kreatif # rpm –ivh samba-<disesuaikan dgn versi>.rpm
root@kreatif # rpm –ivh samba-client-<disesuaikan dgn versi>.rpm
root@kreatif # rpm –ivh samba-common-<disesuaikan dgn versi>.rpm

Konfigurasi Samba

Konfigurasi samba yang dimaksud disini adalah smb.conf yang terletak di direktori /etc/samba. Dalam mengkonfigurasi file smb.conf saya menggunakan editor joe (tekan ctrl+KH untuk bantuan pada editor joe).

root@kreatif # joe /etc/samba/smb.conf

Contoh file /etc/samba/smb.conf

[global]

workgroup = kreatif
server string = kreatif samba server
hosts allow = 192.168.0.
load printers = yes
printcap name = /etc/printcap
printing = bsd
print command = /usr/bin/lpr –r –P%p %s
lpq command = /usr/bin/lpq –P%p
lprm command = /usr/bin/lprm –P%p %j
log file = /var/log/samba.%m
max log size = 50
security = user
socket options = TCP_NODELAY
interfaces = 192.168.0.1 , 118.137.54.193

local master = yes
os level = 65
domain master = yes
prefered master = yes
domain logons = yes
logon script = startup.bat
debug level = 3
wins support = yes

[home]
comment = Home Directories
browseable = no
writeable = yes

[master]
comment = Directory master
path = /home/samba
public = yes
writeable = no
browseable = yes

[printers]
comment = All printers
path = /var/spool/samba
browseable = no
guest ok = no
printable = yes

[slash]
comment = slash punya root
path = /
valid users = root
admin users = root
public = no
writeable = yes
printable = no

[data]
comment = bank data
path = /home/data
valid users = root , feri , xybyte
admin users = root
public = yes
writeable = yes
printable = yes

kemudian simpan file smb.conf tersebut dengan ctrl+KX.
Tambahkan user untuk mengakses dengan smbadduser
Agar share-sharean tersebut tidak bisa diakses sembarang orang maka kita buat password

root@kreatif # smbpasswd –a root
New SMB password :
Retype new SMB password :

root@kreatif # smbadduser feri
root@kreatif # smbpasswd –a feri
New SMB password :
Retype new SMB password :

root@kreatif # smbadduser xybyte
root@kreatif # smbpasswd –a xybyte
New SMB password :
Retype new SMB password :

Memulai dan Menghentikan Samba

Pada samba untuk mengaktifkan file samba tidak hanya mengatifkan daemon smb saja
tapi nmbd juga harus diaktifkan

root@kreatif # service smb start

atau memakai cara :

root@kreatif # /etc/rc.d/init.d/smb start

untuk mematikan memakai cara :
root@kreatif # /etc/rc.d/init.d/smb stop
atau
root@kreatif # service smb stop

Mengakses File Samba Server Menggunakan Windows

Klik start => klik kanan My Computer -> Map Network Drive -> Folder :
\\192.168.0.1\data -> finish - > masukkan username dan password -> ok

tahap mapping windows 1

gambar mapping windows_1

tahap mapping windows 2

gambar mapping windows_2

gambar mapping windows_3

mapping windows_4

gambar mapping windows_4

Mengakses File Samba Server Menggunakan Linux

Kalau tadi menggunakan windows untuk mengakses bagaimana bila menggunakan Linux

konsep :
Linux xybyte --> Linux Kreatif

Misal linux yg dijadikan client adalah “Xybyte” sedangkan yg memiliki smb server adalah Linux kreatif (memiliki ipaddress 192.168.0.1) untuk mengakses bank data maka formatnya sbb:

smbmount //samba server/path /mount-point –U (nama user) –P (password)

root@xybyte # smbmount //192.168.0.1/data /home/xybyte –U xybyte –P gaada

cek share2an nya :

root@xybyte # cd /home/xybyte
root@xybyte # ls –l

Bila terdapat file di samba server maka langkah-langkah diatas berhasil untuk mendisconnect share-sharean tersebut gunakan lah smbumount

root@xybyte # smbumount /home/xybyte

Selamat mencoba .... 

Trackback(0)
feed1 Comments
Ricky W
August 30, 2008
118.136.67.241
Votes: +1

Hi....
Nice website.

Btw salam kenal yah smilies/smiley.gif.

Oh yah mas to the point aja yah, bagaimana caranya jika saya ingin mengkakses samba server via internet smilies/smiley.gif ?

Thanks

"Saya sudah pernah coba namun blm pernah berhasil, mungkin teman2 ada yg bisa atau pernah mencoba,klo saya pribadi mounting samba via internet server to server bisa,tp klo mapping di windows smpai saat ini blm berhasil"

report abuse
vote down
vote up

Write comment
 
 
quote
bold
italicize
underline
strike
url
image
quote
quote
smile
wink
laugh
grin
angry
sad
shocked
cool
tongue
kiss
cry
smaller | bigger
 

security image
Write the displayed characters


busy