1. Install Samba.
But a few additional changes may be required.
2. Open the file smb.conf.
varsha@varsha-laptop:~$ sudo gedit /etc/samba/smb.conf
3. In the [global] section, add the following line.
netbios name = 'name'
workgroup = 'workgroup'
usershare owner only = false
Rename your workgroup according to your Windows settings, and 'name' identifies you on the network.
force user = 'name'
force group = 'name'
Choose the 'name' carefully.
4. Then right-click any directory you want to share and select Sharing Options. Then check Share this folder, give an appropriate name to it, and click Create Share.
Notice that you get a small icon near the shared directory.
Hope it works for you!