Google+

Thursday, November 28, 2013

Sharing and file transfer between systems in network with Samba - Windows and Ubuntu

With systems connected to local network you can transfer or share the files between those systems with simple steps.You can obtain the maximum transfer speed depending on your systems and router/modem transfer rate.You can attain high speed when you are wired then wireless.
 Now lets start how to do this ? For this you need system connected to local network (Windows / Ubuntu)

If it is Ubuntu system we need to install Package named SAMBA.you can install it using following



  • sudo apt-get install samba smbfs

Then we have edit the config file of samba to give access rights. To do this open the config file using



  • sudo gedit /etc/samba/smb.conf
Find the Authentication section and uncomment the line security = user and add a line to make look like.
security = userusername map = /etc/samba/smbusers
Now lets add samba user.

There are two steps to creating a user. First we’ll run the smbpasswd utility to create a samba password for the user.
  • sudo smbpasswd - a <username>


When it prompts for password enter it.Next, we’ll 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. The format is <ubuntuusername> = “<samba username>”.  You can use a different samba user name to map to an ubuntu account, but that’s not really necessary right now.
  • <username> = “<username>”
> Now you can create samba shares and give access to the users that you listed here.
> Now move to file explorer right click the file you want to share and select share this.
> And in the window open select the option and click share.
Ubuntu - Ubuntu
>  In Ubuntu go to file explorer press  " ctrl + L " and type " smb://192.168.1.2" in the address bar.(change the address depending on your connection ip address)
You can also navigate to Network -> Browse Network and you find the home group in it you find the shared files.
 Windows - Ubuntu 
You can share file from windows similarly by right click the file you want to share and select sharing -> advance sharing and give share.
Now goto your Ubuntu system follow the similar steps as Ubuntu-Ubuntu share.
When it ask for username / password enter your windows system username and password.
Thus you are done !!