To install samba type command:
sudo apt-get install samba samba-common-bin
Create a folder you want to share:
sudo mkdir /remote_disk
To change the owner of the directory(in this case set owner and the group to be pi):
sudo chown pi:pi /remote_disk
Add following lines in /etc/samba/smb.conf to share /remote_disk folder
[public]
comment = remote disk
path = /remote_disk
browsable = yes
guest ok = yes
read only = no
create mask = 0755
To enable security(ask username and password on connect) you have to open /etc/samba/smb.conf file, and uncomment line(delete the '#'):
# security = user
To restart samba type command:
sudo /etc/init.d/samba restart