Home > Linux Networking, Ubuntu > Samba File sharing between two ubuntu systems in LAN

Samba File sharing between two ubuntu systems in LAN

November 3rd, 2008

With two systems connected in LAN is so easy to share files and folders in Ubuntu. Here i tell you how to share files and folders with samba file server between two ubuntu systems with few clicks. The Ubuntu Iam using here is Hardy.

The system that has source contents to be shared should have Samba server, (That can be installed in course of the procedure how to share). And the remote system that wish to access the source contents should have the Samba client. Samba client will installed be default in ubuntu, if not install it with the command

$sudo apt-get install smbclient

Here comes the procedure how to share.

Soruce Side

  1. On the source system login to ubuntu, right click on the folder you wish to share and select ‘Sharing Options’.

  2. In the Dialog box that apears select ‘Share this Folder’ check box, you will be prompted to install a service. Clicking on Install will open synaptic package manager and install the Samba Server packages.

  3. On successful Installation of the packages, the part in the server side is over.

    This will create a share automatically in Samba server on the the username you have logged in (here ‘rosario’) with its password.

Destination Side

  1. Check whether the smbclient package is installed, if not install it with the above command.

  2. Use the command like
  3. $sudo smbclient \\\\192.168.1.33\\photos -U rosario

    • where rosario is the username of the source system,
    • 192.168.1.33 is the IP address of the source system
    • photos is the name of the folders shared in the source system(In small characters)
  4. The above command first will prompt the local system password as sudo is used. And then it will prompt for the password of the remote samba server for the username rosario
  5. On giving the right password, it will take to the samba promt.

Smb: \>

Some usefull commands

  • help- To know all possible commands
  • dir- To list out all the shared directories, or contents inside the current directory
  • cd- Change Directory
  • get- To copy a specified file from the source system to the local system
  • put- To copy contents from local system to the server system

Enjoy Easy File Sharing With Ubuntu…

Linux Networking, Ubuntu ,

  1. navaneethan
    November 22nd, 2008 at 14:28 | #1

    nice……thank you………will possible to delete or anything the server file from client

  2. November 22nd, 2008 at 14:42 | #2

    That depends on the Access privillege you give on the server …. If you give write privilleges we can delete…

  1. November 4th, 2008 at 00:58 | #1