Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed Ubuntu Server in VirtualBox running on Windows for someone to test a CMS. To make it easier managing the application, I decided to use Samba to access Apache's document root. What configuration do I need to make, and how do I access from Windows?

During installation I chose LAMP and Samba file server at the package selection step for this purpose.

share|improve this question
up vote 1 down vote accepted

Assuming your document root is in /var/www/foo you need to setup a smb.conf with a section like this:

workgroup = WKG
netbios name = barserver
path = /var/www/foo

With this settings you should be able to access the webspace from a windows computer in the LAN using \\barserver\foo

The accessing computer should be within the workgroup WKG.

share|improve this answer
What exactly is netbios name, and what does [foo] represent? – Oxwivi Dec 12 '11 at 10:25
Netbios is for name resolving: - it is the computer name in windows (barserver in this example). foo is the name of the shared ressource, [] is part of the syntax of the config file. – Michael K Dec 12 '11 at 10:29
I don't know how shared filesystems work, how exactly does tge directory in [foo] show itself when I connect to the server? – Oxwivi Dec 12 '11 at 10:37
you will find a computer with the name barserver in your workgroup and this will offer a shared folder called foo. – Michael K Dec 12 '11 at 10:42
I see. And one last thing, there won't be any permission issues for /var/www/*, right? – Oxwivi Dec 12 '11 at 10:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.