Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 want to share two folders on my Ubuntu box for my W7 machine to use. I typed [MyFiles] only once, then a separate block entry for each path. When I testparmed, only the last path was shown.

share|improve this question

I assume you're talking about Samba, given you've mentioned the testparm utility.

The section headers in the smb.conf file represent the different shares Samba will provide. So if you've added a [MyFiles] section, then Samba will share it as \\hostname\MyFiles to Windows machines.

Each share serves the files from a single folder, so if you want to share two different folders you will need to configure two shares in the smb.conf file (with different section names).

share|improve this answer

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.