membangun samba server pada debian etch

samba merupakan salah satu fasilitas dari linux yang bisa digunakan untuk berbagi (sharing) file dan printer pada sistem operasi windows dan linux. file yang diperlukan adalah samba dan samba-client.

file-file yang dibutuhkan adalah samba dan samba-client,

1. untuk menginstalnya digunakan perintah :

ghodam:~# apt-get install samba samba-client

Reading package lists… Done
Building dependency tree… Done
Note, selecting smbclient instead of samba-client
The following extra packages will be installed:
samba-common smbclient
Suggested packages:
smbfs
Recommended packages:
smbldap-tools
The following NEW packages will be installed:
samba samba-common smbclient
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/9514kB of archives.
After unpacking 23.4MB of additional disk space will be used.
Do you want to continue [Y/n]?
tekan y lalu enter

Media change: please insert the disc labeled
‘Debian GNU/Linux 4.0 r0 _Etch_ – Official i386 DVD Binary-1 20070407-11:40’
in the drive ‘/cdrom/’ and press enter
masukkan dvd debian dan enter

Preconfiguring packages …
Selecting previously deselected package samba-common.
(Reading database … 71684 files and directories currently installed.)
Unpacking samba-common (from …/samba-common_3.0.24-6_i386.deb) …
Selecting previously deselected package samba.
Unpacking samba (from …/samba/samba_3.0.24-6_i386.deb) …
Selecting previously deselected package smbclient.
Unpacking smbclient (from …/smbclient_3.0.24-6_i386.deb) …
Setting up samba-common (3.0.24-6) …

Setting up samba (3.0.24-6) …
Starting Samba daemons: nmbd smbd.

Setting up smbclient (3.0.24-6) …
ghodam:~#

2. buat sebuah user yang dapat digunakan untuk mengakses samba server

ghodam:~# useradd zaqy
ghodam:~# smbpasswd -a zaqy
New SMB password:
Retype new SMB password:
Added user zaqy.
ghodam:~#

3. edit file smb.conf yang terletak di /etc/samba/smb.conf

ghodam:~#nano /etc/samba/smb.conf

4. tentukan workgroupnya pada bagian global setting

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = DEBIANMANGGONG

# server string is the equivalent of the NT Description field
server string = %h server
5. Buat file sharing (langsung ke bagian akhir file smb.conf)

[datasharing]
path = /home/lamanggong/ftp
available = yes
browseable = yes
public = yes
writable = no
comment = arsip
6. simpan file smb.conf

7. restart dengan mengetikkan #/etc/init.d/samba restart

8. lihat dan tes hasil konfigurasi dengan mengetikkan #testparm

9. buka webbrowser dan ketikkan smb://ip.adress.anda

hasilsamba

2 Tanggapan

  1. ck ck ck ck… ada pale blog ta senior, knapa baru dapat sekarang. Keren tawwa, saluuuut

  2. suwun gan materinya

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

%d blogger menyukai ini: