Samba is a good choice for sharing files between Ubuntu and Windows computers.
To install samba server,you can just run following command in terminal:

sudo apt-get install samba smbfs

After installed samba,we need to configure it to make it accessible by following command

sudo gedit /etc/samba/smb.conf

At following screen,change and make it look like the marked section

Now create a samba user by following command

sudo smbpasswd -a username

And add that username to the smbusers file.

sudo gedit /etc/samba/smbusers

Add in the following line, substituting the username with the one you want to give access to

ubuntuusername = “samba username”

Use the name you created in “sudo smbpasswd -a username” instead samba username.