Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 7

File Sharing Debian

Aplikasi Samba

1. Periksa jaringan Internet & Repository


2. Update Repository
3. Install Samba
root@user# apt-get install samba
4. edit file smb.conf
root@user# nano /etc/samba/smb.conf
File /ect/samba/smb.conf
Cari pada baris 102
# sercurity = user
User diganti share dan hilangkan tanda pagar

Cari pada baris 275


valid user = %s berikan tanda pagar menjadi
# valid users = %s
File /ect/samba/smb.conf
Konfigurasi sharing tanpa password / anonymous
Tambahkan script berwarna kuning pada baris paling
bawah

[Anonymous] Tampilan sharing di client


path = /home/anonymous/ lokasi folder yang di sharing
browsable = yes bisa di akses
writable = yes bisa di isi / tulis
guest ok = yes akses user tamu > YA
read only = no hanya bisa memlihat > TIDAK
File /ect/samba/smb.conf
Konfigurasi sharing menggunakan user dan password
Tambahkan script berwarna kuning pada baris paling
bawah

[Sharing] Tampilan sharing di client


path = /home/sharing/ lokasi folder yang di sharing
browsable = yes bisa di akses
valid users = alhuda akses user > alhuda
security = user mode keamanan
writable = yes bisa di isi / tulis
read only = no hanya bisa memlihat > TIDAK
Folder Share

Membuat folder di home

root@user# cd /home
root@user:home# mkdir anonymous
root@user:home# mkdir sharing
root@user:home# chmod 777 sharing/
User samba

Membuat user sharing samba

root@home# adduser alhuda


root@home# smbpasswd -a alhuda
Masukan password untuk user alhuda
Restart Service

root@home# /etc/init.d/samba restart


Atau
root@home# service samba restart

You might also like