Difference between revisions of "Raspbian: Instalasi SAMBA untuk file sharing"

From OnnoWiki
Jump to navigation Jump to search
 
Line 22: Line 22:
  
 
Isi dengan
 
Isi dengan
 +
 +
security=share
  
 
  [share]
 
  [share]

Latest revision as of 08:18, 3 October 2014

Instalasi

apt-get install samba cifs-utils

Menempelkan folder yang di sharing dari komputer lain. Pertama-tama buat folder tempat menempalnya, misalnya,

mkdir -p /var/data/media/temp
chmod -Rf 777 /var/data/media/temp
chown -Rf nobody.nogroup /var/data/media/temp

Mount

mount -t cifs //192.168.0.9/media /mnt/server9 -o username=xxxx -o password=123456789
mount -t cifs //192.168.0.9/media2 /mnt/server9-2 -o username=xxxx -o password=123456789


Share file / folder /var/data dengan nama share. Edit file

vi /etc/samba/smb.conf

Isi dengan

security=share
[share]
path=/var/data
guest ok=yes
browseable=yes
read only=yes