Cara Install dan Konfigurasi Samba di Ubuntu Server 12.04 [Bagian 1]
Install Samba
1 | sudo apt-get install samba |
Samba Share Full Akses dan Tanpa Login
Membuat Folder Share
1 2 | sudo mkdir /home/share_full sudo chmod 777 /home/share_full |
Konfigurasi Samba
Edit file konfigurasi Samba smb.conf
1 | sudo nano /etc/samba/smb.conf |
Cari baris kode di bawah ini untuk mengeset nama workgroup dan tipe security
1 2 3 4 5 | #nama workgroup workgroup = WORKGROUP #"security = share" client bisa mengakses Samba tanpa username dan password security = share |
Kemudian tambahkan kode ini pada baris paling bawah
1 2 3 4 5 6 7 8 | [Share_Full] path = /home/share_full writeable = yes guest ok = yes guest only = yes create mode = 0777 directory mode = 0777 share modes = yes |
Restart service smbd
1 | sudo service smbd restart |
Mengakses Samba
Melihat daftar folder yang dishare pada IP 10.10.10.1
1 2 3 4 5 6 7 8 9 | smbclient -L //10.10.10.1 Enter musa's password: Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.3] Sharename Type Comment --------- ---- ------- print$ Disk Printer Drivers Share_Full Disk IPC$ IPC IPC Service (ubuntu-server server (Samba, Ubuntu)) |
Mount Share_Full pada IP 10.10.10.1 ke folder /mnt tanpa username dan password
1 | sudo mount -t cifs //10.10.10.1/Share_Full /mnt -o username=,password= |
Melepas mount atau unmount
1 | sudo umount /mnt |
selamat mencoba 😀
referensi :
server-world.info/en
opensource.telkompeedy.com/wiki