Install and configure Samba on Ubuntu 13.10

This tutorial is going to show you how to install and configure Samba on Ubuntu 13.10. Samba is a Linux tool which help us to enable file sharing on Linux system with other environment such as Windows. We need to install and configure Samba in order to share a folder under Ubuntu and accessible from other computer. 
First, we need to install Samba. Open Terminal and type this command to install Samba
sudo apt-get install samba
Now we need to configure the smb.conf file before we can share a folder.
sudo nano /etc/samba/smb.conf
Now find and uncomment the following items on the smb.conf. Simply delete the # symbol close to it. 
#security = user
So it will look like this
security = user
This will enable the user level security. Only Samba user have access to the Samba share.
Now we will enable the home directory for any Samba users. Uncomment the following lines:
#[homes]
# comment = Home Directories
# read only = No
# create mask = 0770
# directory mask = 0770
# browseable = No
It should now look like this
[homes]
comment = Home Directories
read only = No
create mask = 0770
directory mask = 0770
browseable = No
At this point, Samba is well configured with Home directory access enabled for all Samba users. Now we need to add Ubuntu user to Samba user. For example, I want to add user dhani to Samba user. So dhani have access to the Samba share from other computer. 
sudo smbpasswd -a dhani
Enter the new password for user dhani. This password is used to access Samba from remote computer. 
Now restart Samba service
sudo service smbd restart
Done. You can now access Ubuntu Samba share from Windows computer. 
Open Windows explorer and type the Ubuntu IP address with the following format:
\\192.168.2.106
Change the IP address with Ubuntu IP address