Accessing a Shared Folder on Ubuntu 10.10 Through Windows

Linux Folder sharing is easy and very useful feature of any OS, but it may be difficult when the shared folder host on Ubuntu and accessing from Windows. If you would like to access a shared folder hosted on an Ubuntu computer by using computers running Windows, you may have to perform these additional steps:

  • Go to Applications >> Accessories >> Terminal or (Alt+Ctrl+t) to open a Terminal.
  • Type sudo smbpasswd -a username, replacing “username” with your own username. Press Enter.
To find out your username run whoami into the Terminal .
  • Enter your login password.
  • Now enter the password that you would like to use to access a shared folder.
  • Re-enter same password.

You should now be able to connect to the shared folders on the Ubuntu computer.The folder sharing service in Ubuntu that supports sharing with Windows computers is called Samba. The background process, or daemon, is called smbd. If you are unable to connect to a shared folder using Windows, try using the IP address of the Ubuntu computer rather than its host name to access the share:

  • Go to System >> Administration >> Network Tools and select the Devices tab.
  • Select the network connection from the Network device option list (for example, “eth0”). If you have several network connections, you may have to try this several times.
  • Make a note of the number in the IP address column. It should consist of four numbers (for example, “192.168.1.2”).
  • On the Windows computer, select Start >> Run and type \\ipaddress in the text box, replacing “ipaddress” with the IP address of the Ubuntu computer.
  • Press OK to connect to the shared folder.

If you are still unable to access the shared folder, check that the folder sharing service is running on the Ubuntu computer:

  • In a terminal, run:
service smbd status
  • If the service is stopped, you will see:
smbd stop/waiting
  • If you find that the service is stopped, try starting the service:
sudo service smbd start.

Now share a folder to accessing via Windows. If you don’t know how to share a folder on ubuntu then read my tutorial of how to share a folder On Ubuntu. When you share folder you may get an error like :

Failed to execute child process “testparm” (No such file or directory).

If it come then run

sudo apt-get upgrade samba-common-bin.

Hope this will helpful for you for any query or help you can comments here. If you have any other way to accessing folder from Windows then drop in comment.

More Related posts:

  1. Enable Shared Folders Application On Ubuntu 10.10[How-to]
  2. Nautilus Share: A Quick And Easy Way To Share Folder On Ubuntu 10.10
  3. 7 Tips to Keep Your Computer Safe On Ubuntu 10.10
  4. How-to Create Disk Partition On Ubuntu 10.10
  5. Nvidia Installation And Customization Guide on Ubuntu 10.10

{ 1 comment… read it below or add one }

Sharninder February 14, 2011 at 2:54 AM

This technique should work for most Linux variants these days. Samba (or smbd) is available for all flavours of Linux, Solaris and even Mac OS X.

Reply

Leave a Comment