Difference between revisions of "Korban: Install File Sharing"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | ==Instalasi== | ||
+ | |||
+ | sudo apt update | ||
+ | sudo apt -y install samba cifs-utils | ||
+ | |||
+ | |||
+ | |||
+ | ==Tambahkan User== | ||
+ | |||
Buat user tanpa password | Buat user tanpa password | ||
Line 4: | Line 13: | ||
adduser tamu | adduser tamu | ||
− | Setiap kali di tanya password, tekan <ENTER> saja | + | Setiap kali di tanya password, tekan <ENTER> saja. |
+ | |||
+ | Jika di perlukan tambahkan password untuk file sharing akses / samba misalnya | ||
+ | |||
+ | sudo smbpasswd -a guest | ||
+ | New SMB password: <123456> | ||
+ | Retype new SMB password: <123456> | ||
+ | |||
+ | sudo smbpasswd -a tamu | ||
+ | New SMB password: <123456> | ||
+ | Retype new SMB password: <123456> | ||
+ | |||
+ | sudo smbpasswd -a onno | ||
+ | New SMB password: <123456> | ||
+ | Retype new SMB password: <123456> | ||
+ | |||
+ | |||
+ | |||
==Buat Folder & Install== | ==Buat Folder & Install== | ||
Line 24: | Line 50: | ||
Tambahkan | Tambahkan | ||
− | |||
guest account = YOUR_USERNAME_HERE | guest account = YOUR_USERNAME_HERE |
Latest revision as of 06:56, 22 March 2019
Instalasi
sudo apt update sudo apt -y install samba cifs-utils
Tambahkan User
Buat user tanpa password
adduser guest adduser tamu
Setiap kali di tanya password, tekan <ENTER> saja.
Jika di perlukan tambahkan password untuk file sharing akses / samba misalnya
sudo smbpasswd -a guest New SMB password: <123456> Retype new SMB password: <123456>
sudo smbpasswd -a tamu New SMB password: <123456> Retype new SMB password: <123456>
sudo smbpasswd -a onno New SMB password: <123456> Retype new SMB password: <123456>
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