Pages

Education

Featured Posts Coolbthemes

Kamis, 03 Maret 2011

Install samba di ubuntu server

Samba adalah program yang bersifat open source yang menyediakan layanan berbagi berkas (file service) dan berbagi alat pencetak (print service), resolusi nama NetBIOS, dan pengumuman layanan (NetBIOS service announcement/browsing). Sebagai sebuah aplikasi file server, Samba mengizinkan berkas, alat pencetak, dan beberapa sumber daya lainnya agar dapat digunakan oleh banyak pengguna dalam keluarga sistem operasi UNIX, dan mengizinkan interoperabilitas dengan sistem operasi Windows. Samba dibuat berdasarkan protokol Server Message Block (SMB), oleh Andrew Tridgell. Dan kali ini saya akan membahas cara insatallasi samba pada server ubuntu. Kita mulai sajalah tanpa panjang lebar lagi.
1. Buka Terminal / text mode dan jalankan perintah :
administrator@server3:/etc$ sudo apt-get install samba smbfs Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
  libavahi-client3 libcups2 libtalloc1 libwbclient0 samba-common
  samba-common-bin
Suggested packages:
  cups-common openbsd-inetd inet-superserver smbldap-tools ldb-tools smbclient
  keyutils
The following NEW packages will be installed:
  libavahi-client3 libcups2 libtalloc1 libwbclient0 samba samba-common
  samba-common-bin smbfs
0 upgraded, 8 newly installed, 0 to remove and 4 not upgraded.
Need to get 13.6MB of archives.
After this operation, 37.5MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://10.0.0.253 karmic-updates/main libavahi-client3 0.6.25-1ubuntu5.1 [54.0kB]
Get:2 http://10.0.0.253 karmic-updates/main libcups2 1.4.1-5ubuntu2.1 [212kB]
Get:3 http://10.0.0.253 karmic/main libtalloc1 1.4.0~git20090718-1 [19.3kB]
Get:4 http://10.0.0.253 karmic-updates/main libwbclient0 2:3.4.0-3ubuntu5.3 [102kB]
Get:5 http://10.0.0.253 karmic-updates/main samba-common 2:3.4.0-3ubuntu5.3 [387kB]
Get:6 http://10.0.0.253 karmic-updates/main samba 2:3.4.0-3ubuntu5.3 [6,241kB]
Get:7 http://10.0.0.253 karmic-updates/main samba-common-bin 2:3.4.0-3ubuntu5.3 [4,786kB]
Get:8 http://10.0.0.253 karmic-updates/main smbfs 2:3.4.0-3ubuntu5.3 [1,840kB]
Fetched 13.6MB in 1s (13.3MB/s)
Preconfiguring packages …
Selecting previously deselected package libavahi-client3.
(Reading database … 55551 files and directories currently installed.)
Unpacking libavahi-client3 (from …/libavahi-client3_0.6.25-1ubuntu5.1_i386.deb) …
Selecting previously deselected package libcups2.
Unpacking libcups2 (from …/libcups2_1.4.1-5ubuntu2.1_i386.deb) …
Selecting previously deselected package libtalloc1.
Unpacking libtalloc1 (from …/libtalloc1_1.4.0~git20090718-1_i386.deb) …
Selecting previously deselected package libwbclient0.
Unpacking libwbclient0 (from …/libwbclient0_2%3a3.4.0-3ubuntu5.3_i386.deb) …
Selecting previously deselected package samba-common.
Unpacking samba-common (from …/samba-common_2%3a3.4.0-3ubuntu5.3_all.deb) …
Selecting previously deselected package samba.
Unpacking samba (from …/samba_2%3a3.4.0-3ubuntu5.3_i386.deb) …
Selecting previously deselected package samba-common-bin.
Unpacking samba-common-bin (from …/samba-common-bin_2%3a3.4.0-3ubuntu5.3_i386.deb) …
Selecting previously deselected package smbfs.
Unpacking smbfs (from …/smbfs_2%3a3.4.0-3ubuntu5.3_i386.deb) …
Processing triggers for man-db …
Processing triggers for ufw …
Processing triggers for ureadahead …
Setting up libavahi-client3 (0.6.25-1ubuntu5.1) …
Setting up libcups2 (1.4.1-5ubuntu2.1) …
Setting up libtalloc1 (1.4.0~git20090718-1) …
Setting up libwbclient0 (2:3.4.0-3ubuntu5.3) …
Setting up samba-common (2:3.4.0-3ubuntu5.3) …
Creating config file /etc/samba/smb.conf with new version
Setting up samba (2:3.4.0-3ubuntu5.3) …
update-alternatives: using /usr/bin/smbstatus.samba3 to provide /usr/bin/smbstatus (smbstatus) in auto mode.
Generating /etc/default/samba…
tdbsam_open: Converting version 0.0 database to version 4.0.
tdbsam_convert_backup: updated /var/lib/samba/passdb.tdb file.
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Importing account for nobody…ok
Importing account for administrator…ok
Importing account for alias…ok
Importing account for qmaild…ok
Importing account for qmaill…ok
Importing account for qmailp…ok
Importing account for qmailq…ok
Importing account for qmailr…ok
Importing account for qmails…ok
Importing account for vpopmail…ok
Importing account for nagios…ok
* Starting Samba daemons                                                [ OK ]
Setting up samba-common-bin (2:3.4.0-3ubuntu5.3) …
update-alternatives: using /usr/bin/nmblookup.samba3 to provide /usr/bin/nmblookup (nmblookup) in auto mode.
update-alternatives: using /usr/bin/net.samba3 to provide /usr/bin/net (net) in auto mode.
update-alternatives: using /usr/bin/testparm.samba3 to provide /usr/bin/testparm (testparm) in auto mode.
Setting up smbfs (2:3.4.0-3ubuntu5.3) …
Processing triggers for libc-bin …
ldconfig deferred processing now taking place
2. Samba telah ter-install, sekarang saatnya kita mengkonfigurasinya agar dapat diakses. Jalankan perintah dibawah untuk membuka file konfigurasi. Gunakan editor kesukaan anda, saat ini saya akan menggunakan nano.
$ sudo nano /etc/samba/smb.conf
3. Cari bagian seperti dibawah ini :
####### Authentication #######
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
#   security = user
4. Hilangkan tanda pagar pada “#   security = user” lalu buat menjadi “   security = user” dan tambahkan satu baris lagi dibawahnya dengan “username map = /etc/samba/smbusers” sehingga seperti :
####### Authentication #######
# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = user
username map = /etc/samba/smbusers

5. Simpan perubahan konfigurasi dengan menekan tombol Ctrl + O lalu tekan Enter. Setelah selesai menyimpan, anda keluar dari editor dengan menekan tombol Ctrl + X.
Selesai sudah installasi samba di server ubuntu.

Tidak ada komentar:

Posting Komentar