Rabu, 16 Januari 2008

SAMBA server

Langkah-langkah membuat SAMBA server

MEMBUAT FILE SHARING DI WINDOWS
Samba Client Howto
Peralatan :
Komputer Client : 10.252.108.251[Linux Debian]
Komputer Server : 10.252.102.250[Windows XP]

Konfigurasi Komputer Server
1. Buat folder c:/temp di windows XP
2. Share folder c:/temp
Konfigurasi Komputer Client
1. Install package smbclient dan samba-common
# apt-get install smbclient
# apt-get install samba-common
2. Install package smbfs untuk mount windows share directly
# apt-get install smbfs
3. Testing smbclient untuk browse share directory
smbclient -L [KomputerServer]
# smbclient -L 10.252.102.250
# masukkan password : [password]
Contoh hasil ;
Sharename Type Comment
--------- ---- -------
IPC$ IPC Distant IPC
D$ Disk default Share
ShareDocs Disk
islam Disk
temp Disk
ADMIN$ Disk Remote Admin
wwwroot$ Disk Used for file share access to
web projects
C$ Disk default Share
hpdeskje Printer hp deskjet 845c

Server Comment
--------- -------

Workgroup Master
--------- -------
4. Testing me-mount share directory
# cd /mnt
# mkdir tempclient
# mount -t smb //10.252.102.250/temp /mnt/tempclient
5. Cek Hasilnya
# cd /mnt
# ls -l
jika berhasil akan muncul file share directory
//10.252.102.250/temp

MEMBUAT FILE SHARING DI LINUX
komputer server : 10.252.108.251[Linux Debian]
komputer client : 10.252.102.250[windows XP]
Komfigurasi Komputer Server
1. Install Package samba
# apt-get install samba
2. Konfigurasi samba
# vim /etc/samba/smb.conf
3. Menjalankan service samba
# /etc/init.d/samba [startrestarstop]
4. Membuat file sharing di linux
a. Buka file smb.conf
# vim /etc/samba/smb.conf
b. Edit bagian [global]
Bagian [global]
Workgroup = eepis-its.edu
Netbios name = LINUX DEBIAN
Server string = Sharing file di Lab Jarkom
Security = share
Domain logons = no
c. Membuat direktori yang akan dishare
contoh : /home/temp
[temp]
comment = temp udinharun
path = /home/temp
browseable = yes
writeable = yes
public = yes
5. Testing samba
Buka dari komputer client [windows] dan lakukan
map network drive ke direktori
komputer server yang telah dishare.
6. testparm /etc/samba/smb.conf

MEMBUAT SAMBA PASSWORD
1. # cat /etc/passwd > /etc/smbpasswd
2. pastikan root yg punya akses ke samba password
# chmod 600 /etc/smbpasswd
3. Set Samba password tiap user
# smbpasswd username
4. Edit smb.conf --> tambahkan
encrypt password = yes
smb passwd file = /etc/smbpasswd
5. Restart service
# /etc/init.d/samba restart

CONNECTING to A SAMBA MACHINE IN LINUX
1. install smbclient di computer client
# apt-get install smbclient
2. Tes Service samba
# smbclient \\SERVERSAMBA\sharename
or
# smbclient \\SERVERSAMBA\username
- masukkan nama
- masukkan samba password
# help --> coba semua perintah tsb

MENGAKSES SAMBA Dari Windows dg Prompt
1. net use d: \\SERVERSAMBA\[sharenameusername]


Pelajari Samba reference :
- WORKGROUP = [\u2026..]
- SECURITY = [USER / SHARE /SERVER /DOMAIN]
- GUEST OK = [ YES/NO ]
- READ ONLY = [ YES/NO ]
- PATH = [\u2026.]
:::UdinHarun:::
Tutorial : - http://julien.herbin.ecranbleu.org/howto/
samba_client_howto.html
- http://www.linuxheadquarters.com/howto/
networking/samba.shtml
- http://us3.samba.org/samba/docs/man/
Samba-HOWTO-Collection/install.html#
smbconfminimal

Tidak ada komentar: