A common goal of setting up computers on a local network is being able to share files and folders. In order for file sharing to work, the computers must exist on the same network and Workgroup. Then, the computer sharing files must have a folder configured with the proper permissions to allow other computers in the network to access it. In previous tutorials we have shown how to enable file sharing & change the Workgroup in Ubuntu and also how to share folders in Ubuntu and access them from Windows 7. This tutorial will show how to configure shared folders on your Windows 7 computer and access them from Ubuntu via your home network.
NOTE: Article updated to work for Ubuntu v10.10 & 11.04.
In order for Ubuntu and Windows 7 to easily share files, they have to be configured so that they are on the same Workgroup.
To change your Windows 7 workgroup, see: How to Change the Workgroup in Windows 7.
To change your Ubuntu workgroup, see: How to Enable File Sharing & Change the Workgroup in Ubuntu Linux.
Once the Workgroup is set up to be the same on both computers, proceed to the next section of this tutorial.
If you have not already set up a shared folder on your Windows PC, you'll need to do so now. This step involves two sub-steps for which we've written individual tutorials:
To access the Windows 7 shared folder from Ubuntu, you have to use the Connect to Serveroption.
From the top menu toolbar click on Places and then on Connect to Server.

From the Service type drop-down menu, select Windows share. In the Server text filed type the name or the IP Address of the Windows 7 computer. Next, in the User name text field type a user account defined on the Windows 7 computer, with access to the shared folder. If you want to bookmark this computer and its shared folders, check the option ’Add bookmark’ and type the name that you want to use in the Bookmark name text field. Then, click Connect.

Now you will be prompted to enter the password for the Windows 7 user account you typed earlier. Type the password and select the option ’Remember forever’ if you don’t want to be bothered again.
Click on Connect.

Next, the Windows 7 shared folders will open up in a new window.

In the Windows 7 shared folders list you will also see the partitions defined on Windows 7. You can recognize them by the $ sign they all have after their letter (e.g. C$, D$). You won’t be able to access them, you can only open shared folders.
Note: If you haven’t used the Bookmark option, next time you want to access shared folders from the same computer, go to Places -> Network and select the Windows 7 computer.
You can easily use Ubuntu to access shared folders on a Windows 7 PC that co-exists on the same Workgroup. If you want to know more about setting up other PC's on a local network, or how to further utilize the networking features between Ubuntu Linux and Windows 7, check out the articles listed below.
How to Share Folders in Ubuntu & Access them from Windows 7
Mount Windows 7 Shared Partitions & Folders in Ubuntu
How to Change the Workgroup in Windows 7
How to Customize Network Sharing Settings in Windows 7
Share Libraries or Folders Using the Sharing Wizard
Comments
It is written very well with
It is written very well with a lot of details.
However I tried it twice. Second time I even changed the workgroup
name again. Either of the times, it didn't work out for me. The first time I changed the name, my Ubuntu computer said it failed to open. The second time I changed the name it didn't even appear on my Networks. The name appeared as the old name.
I was able to get it to work
I was able to get it to work once I used the IP address of my windows computer in the server field.
It works with WinXp and
It works with WinXp and doesn't work with Win 7. I always get dialog box with username and password requirement and no one of existing in Win 7 username and password works. I get dialog box with username and password requirement again and again... The same situation is in case when I try to access shared printer in Win 7.
I manage a computer network
I manage a computer network of windows machines and a Linux server and I have this problem on some windows computers. It seems that Windows versions are working differently (quite buggy). On some machines, to make it work without asking passwords each time, I had to use the same username & password on both server & windows client. Also check the Windows network security settings (encrypting, etc.).
I was able to connect to a
I was able to connect to a computer that has Windows 7 Home Premium okay, but when I try to connect to a computer that has Windows 7 Professional it keeps asking for a password. Any user and password I use will not work.
I second the Anon comment
I second the Anon comment about the IP address. I was completely unable to accomplish this using the computer name. IP address of the windows machine in the server field worked perfectly though. Thanks for the tips!
I had to add this line to my
I had to add this line to my /etc/fstab.conf which solved the rest of my issues. Good luck all.
//{IP of server}/{shared folder} {mount point} smbfs rw,auto,user={username},password={Password} 0 0
I successfully connected to
I successfully connected to Windows7 share after I changed password for the windows user from a unicode charset (my password was in russian) to english charset. I spent ~1 hour trying to guess where the problem is. Hope this may help someone.
Thanks for the tutorial!
Thanks for this tutorial.
Thanks for this tutorial. I've tried this other times with out any success, thank you thank you thank you.!!!!!!!!
Only worked when I used the
Only worked when I used the IP address. Thank you.
What if the Windows share
What if the Windows share doesn't has a password?
Then chances are you won't be
Then chances are you won't be able to connect to those Windows shares. If I remember correctly, Windows has a security policy of not allowing access to shares with no password. If that's the case for you too, then you have two choices:
- disable that policy in Windows OR
- create a password for the user account used to make those shares and then use that user & password to connect from the Linux computer.
Does the 128bit encryption
Does the 128bit encryption setting in windows 7's control panel advanced sharing have any effect on linux-windows sharing? Can I leave it at 128bits?
this really helped, thanks
this really helped, thanks
Add new comment