Difference between revisions of "Korban: Install File Sharing"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "==Buat Folder & Install== mkdir /home/public mkdir /home/data chown -Rf nobody.nogroup /home/public chown -Rf nobody.nogroup /home/data chmod -Rf 777 /home/public chmod...")
 
Line 7: Line 7:
 
  chmod -Rf 777 /home/public
 
  chmod -Rf 777 /home/public
 
  chmod -Rf 644 /home/data
 
  chmod -Rf 644 /home/data
  sudo apt-get install samba cifs-utils
+
  sudo apt -y install samba cifs-utils
  
 
Edit
 
Edit

Revision as of 06:50, 7 June 2017

Buat Folder & Install

mkdir /home/public
mkdir /home/data
chown -Rf nobody.nogroup /home/public
chown -Rf nobody.nogroup /home/data
chmod -Rf 777 /home/public
chmod -Rf 644 /home/data
sudo apt -y install samba cifs-utils

Edit

vi /etc/samba/smb.conf

Tambahkan

[public]
path = /home/public
available = yes
browsable = yes
public = yes
writable = yes
[data]
path = /home/data
available = yes
browsable = yes
public = yes
writable = no