1

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.

1 Answer 1

1

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

[global]
workgroup = WKG
netbios name = barserver
[foo]
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.

5
  • What exactly is netbios name, and what does [foo] represent?
    – Oxwivi
    Dec 12, 2011 at 10:25
  • Netbios is for name resolving: en.wikipedia.org/wiki/NetBIOS - 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, 2011 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, 2011 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, 2011 at 10:42
  • I see. And one last thing, there won't be any permission issues for /var/www/*, right?
    – Oxwivi
    Dec 12, 2011 at 10:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .