Difference between revisions of "Korban: Install File Sharing"

From OnnoWiki
Jump to navigation Jump to search
Line 3: Line 3:
 
  mkdir /home/public
 
  mkdir /home/public
 
  mkdir /home/data
 
  mkdir /home/data
 +
mkdir /home/Drop
 
  chown -Rf nobody.nogroup /home/public
 
  chown -Rf nobody.nogroup /home/public
 
  chown -Rf nobody.nogroup /home/data
 
  chown -Rf nobody.nogroup /home/data
 +
chown -Rf nobody.nogroup /home/Drop
 
  chmod -Rf 777 /home/public
 
  chmod -Rf 777 /home/public
 +
chmod -Rf 777 /home/Drop
 
  chmod -Rf 644 /home/data
 
  chmod -Rf 644 /home/data
 
  sudo apt -y install samba cifs-utils
 
  sudo apt -y install samba cifs-utils
Line 14: Line 17:
  
 
Tambahkan
 
Tambahkan
 +
 +
 +
guest account = YOUR_USERNAME_HERE
 +
map to guest = bad user
 +
workgroup = WORKGROUP
 +
server string = YOUR_SERVER_HOSTNAME_HERE
 +
security = user
 +
name resolve order = hosts lmhosts
 +
create mask = 0777
 +
directory mask = 0777
 +
 +
[Drop]
 +
path = /home/Drop
 +
guest ok = yes
 +
read only = no
 +
writable = yes
 +
public = yes
  
 
  [public]
 
  [public]

Revision as of 11:51, 31 May 2018

Buat Folder & Install

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

Edit

vi /etc/samba/smb.conf

Tambahkan


guest account = YOUR_USERNAME_HERE
map to guest = bad user
workgroup = WORKGROUP
server string = YOUR_SERVER_HOSTNAME_HERE
security = user
name resolve order = hosts lmhosts
create mask = 0777
directory mask = 0777

[Drop]
path = /home/Drop
guest ok = yes
read only = no
writable = yes
public = yes
[public]
path = /home/public
available = yes
browsable = yes
public = yes
writable = yes
[data]
path = /home/data
available = yes
browsable = yes
public = yes
writable = no