Difference between revisions of "Instalasi Samba"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Instalasi [[SAMBA]] | Instalasi [[SAMBA]] | ||
− | + | sudo apt-get install samba smbfs | |
+ | |||
+ | Di Ubuntu 12.10 ke atas di ubah menjadi | ||
+ | |||
+ | sudo apt-get install samba cifs-utils | ||
==SAMBA Server== | ==SAMBA Server== | ||
Line 24: | Line 28: | ||
Ubah owner folder yang di share /home/public agar bisa di write | Ubah owner folder yang di share /home/public agar bisa di write | ||
+ | # mkdir /home/public | ||
# chown -Rf nobody.nogroup /home/public | # chown -Rf nobody.nogroup /home/public | ||
Restart server samba | Restart server samba | ||
− | # /etc/init.d/ | + | # /etc/init.d/smbd restart |
Line 72: | Line 77: | ||
* [[SAMBA: Permission Problem waktu Create Folder Share]] | * [[SAMBA: Permission Problem waktu Create Folder Share]] | ||
* [[SAMBA: Menempelkan share directory remote ke folder lokal]] | * [[SAMBA: Menempelkan share directory remote ke folder lokal]] | ||
+ | * [[SAMBA: Primary Domain Controller]] | ||
* [[Linux Howto]] | * [[Linux Howto]] | ||
[[Category: Linux]] | [[Category: Linux]] |
Latest revision as of 06:25, 10 December 2012
Instalasi SAMBA
sudo apt-get install samba smbfs
Di Ubuntu 12.10 ke atas di ubah menjadi
sudo apt-get install samba cifs-utils
SAMBA Server
Edit file /etc/samba/smb.conf
Pastikan ada parameter
netbios name = namakomputeranda workgroup = namajaringan security = share
Pastikan ada folder yang di share, misalnya seperti
[public] comment = Directory Public Samba server writable = yes locking = yes path = /home/public public = yes
Ubah owner folder yang di share /home/public agar bisa di write
# mkdir /home/public # chown -Rf nobody.nogroup /home/public
Restart server samba
# /etc/init.d/smbd restart
SAMBA Client
Di sisi client, jika kita ingin me-nempel-kan sebuah folder yang di share, kita perlu melakukan langkah berikut,
Buat folder untuk menempelkan folder yang akan di share
# mkdir /mnt/tempatmenempelfolder
Selanjutnya lakukan mount folder komputer lain ke komputer kita
# mount -t cifs //ip-address-server-samba/public /mnt/tempatmenempelfolder -o password=
Untuk melepaskan folder yang tadinya di mount / di tempel
# umount /mnt/tempatnempelfolder
Contoh SAMBA
sudo su
mkdir /mnt/public2 mkdir /mnt/library2 mkdir /mnt/backup2 mkdir /mnt/media2 mount -t cifs //192.168.0.2/public /mnt/public2 -o password= mount -t cifs //192.168.0.2/library /mnt/library2 -o password= mount -t cifs //192.168.0.2/backup /mnt/backup2 -o password= mount -t cifs //192.168.0.2/media /mnt/media2 -o password=