SAMBA: Membuat User untuk samba
Revision as of 11:10, 14 February 2016 by Onnowpurbo (talk | contribs)
Install Samba
sudo apt-get update sudo apt-get install samba
Set password untuk user di Samba
sudo smbpasswd -a <user_name>
Ini akan di simpan di /etc/samba/smbpasswd
Buat folder untuk sharing user tersebut
mkdir /home/<user_name>/<folder_name> sudo chown <user_name> /home/<user_name>/<folder_name> sudo chown :<user_name> /home/<user_name>/<folder_name>
Edit
sudo nano /etc/samba/smb.conf
[<folder_name>] path = /home/<user_name>/<folder_name> valid users = <user_name> read only = no
Restart
sudo service smbd restart
Test parameter
testparm
sudo apt-get install smbclient
# List all shares: smbclient -L //<HOST_IP_OR_NAME>/<folder_name> -U <user>
# connect: smbclient //<HOST_IP_OR_NAME>/<folder_name> -U <user>