Home > Tips & Howtos > Howtos: Map a Network Ubuntu Drive in Windows.

Howtos: Map a Network Ubuntu Drive in Windows.

Ubuntu Drive mapped in Windows

If you looked in Google, there are plenty of instructions on how to map a Windows drive in Ubuntu; however, if you want to find the vice versa, it’s going to be a struggle. I struggled over this myself; now that I got mine working, I’d like to share it with you.

First of all, you have to install Samba in your Ubuntu system. To do this, go into terminal, and type:

sudo apt-get install samba smbfs

Second, you should install Webmin to manage Samba. I find it to be the easiest tool to manage samba with. This tutorial will show you how to share your drive in Webmin. Go to Webmin.com, and download the latest deb package. If you do not have GUI, you can type the followings in terminal (this may not be the newest version. This is the newest version of Webmin as of 2009-08-14)

sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

wget http://iweb.dl.sourceforge.net/project/webadmin/webmin/1.480/webmin_1.480_all.deb

sudo dpkg -i webmin_1.480_all.deb

Last operation on the actual Ubuntu machine is to take ownership of the directory you want to share. To do this, go in terminal, and type (Case-Sensitive):

sudo chown –R <username> <directory you want to share>

Fore example, it would looks something like this:

sudo chown –R administrator /media/DataPartition

Now we can start the tutorial. There is also a video for this section, just scroll down.

  1. Go on another machine if you do not have GUI on your Ubuntu Server, go to: https://your-server-ip:10000 or https://localhost:10000 if you are on the same machine in a browser that’s not Firefox. If it is Firefox, you may need to add an security certificate exception. If you look at my video, you wouldn’t see HTTPS because I disabled it.
  2. Login with your administrative account (an account with sudo access)
  3. Click Server on the left sidebar to expand it.
  4. Click Samba Windows File Sharing
  5. Click Windows Networking.
  6. Change the Workgroup to the Workgroup your Windows network uses.
  7. Click Create a new file share
  8. Enter an one-word name for the directory you want to share in Share name, like “data”.
  9. Choose the directory you want to share in Directory to Share with the … button to the right.
  10. Remember to put Available? and Broweable? to Yes.
  11. If you want to put a description for this file share, put it in the Comments.
  12. Leave everything else as it is and click Create.
  13. Now click the name of the file share you just created in the table of shares.
  14. Click Security and Access Control.
  15. Set Writable to Yes if you want people who are going to access the drive to be able to write and create files; otherwise, set it to No.
  16. If you want everyone to be able to access the file, whether or not if they have an account on the Ubuntu machine, set Guest Access? to Yes. If you want people to login while they map the network drive in Windows, set it to No.
  17. If you set Guest Access to Yes, set Guest Unix User to the user you took the ownership with.
  18. Click Save.
  19. Click File Permission.
  20. Set Force Unix User the same as Guest Unix User so that there is no chance that you screwed up.
  21. Click Save.

Now you should be able to see the folder you shared from Windows’s My Network Place or Network if you are on Vista/7. To map your network drive:

  1. Login into Windows
  2. Go into My Computer
  3. Click Map Network Drive on the top bar if you are on Vista and 7. Click Tools -> Map Network Drive on the menu bar if you are on XP.
  4. Choose a drive letter.
  5. Enter \\<YourServerName>\ShareName (YourServerName is the Ubuntu’s computer name and ShareName is the name you entered in the Share Name field in Step 8 )
  6. If you set Guest Access to No in Step 16, check Connect with different credentials.
  7. Click Finish. Login with your Ubuntu username that you took the ownership of the folder with if you checked Connect with different credentials.

Now you should be done!

Edit: If Windows tells you that you are not authorized to log in from that station. Go back into samba -> Authentication, and check allow null password and default for the password program. If it still want you to enter a password, go to Samba -> Windows Networking Options and change the Security level to Share Level

Like it? Share it:
  • Digg
  • Reddit
  • StumbleUpon
  • Yahoo! Buzz
  • Technorati
  • Twitter
  • Tumblr
  • Facebook
  • del.icio.us
  • Slashdot
  • Google Bookmarks
  • Ping.fm
  • email
  • Print

Related posts:

  1. Howtos: Turn up the max volume in Ubuntu Linux If you searched up on Google, you will find a...
  2. Howtos: How to make ATI HD graphics work with compiz on Ubuntu Here is yet another Ubuntu howtos. This tells you howto...
  3. Upgrade Ubuntu’s Firefox to 3.6.3 auto-magically Want to upgrade to Firefox 3.6.3 on your Ubuntu installation...
  4. Which version of Windows 7 should you buy? With that many Windows 7 edition is sight, all with...
  5. Ubuntu: Good and Bad Ubuntu 9.10 has just released. Here are some highlights and...

Related posts brought to you by Yet Another Related Posts Plugin.

 

Your Ad Here
Line Break

Author: Ultimatebuster (87 Articles)

Administrator. Usually found surfing the tubes and hiding in an IRC Chatroom. Occasionally developing in Python or doing web design. Blogging comes 3rd. Oh, follow him on twitter so he can finally settle on more than 100 followers.

  1. No comments yet.
  1. No trackbacks yet.