Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.