Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

How can I share multiple folders in Samba? If I use mutiple [public] sections in smb.conf only the last 1 has effect. Then if I try to name each section differently, I samba doesnt seem to recognize them as shares.

share|improve this question
1  
Would you mind pasting your smb.conf in your question area ? –  warl0ck Sep 14 '12 at 13:18

1 Answer 1

up vote 1 down vote accepted

It would be better if you won't use multiple [public] sections. For every section put there some other name/description so it will give the user hint what is/might be under that share. For example:

[Docs]
  comment = Docs
  path = <path>
  public = no
  writable = yes
  ...

[public]
   path = <path>
   public = yes
   only guest = yes
   writable = yes
   printable = no
   ...

Set all needed properties for every share as you would like to. If you want to have all shares public (read/write for everybody) just set under each share section

public = yes


EDIT: Just noticed that you have already tried to name the sections differently and it did not helped. As warl0ck wrote, post here your smb.conf.

share|improve this answer
    
Ok I tried multiple sections and it worked today. Perhaps I was using some erroneous option yesterday ... –  Jiew Meng Sep 15 '12 at 1:53

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.