Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a diretory like samba | test1 | test2

and user A,B.

I hope user A can read and write samba directory. And user B can read samba directory, but only samba/test2 directory can write.

I use the below config, but when I user samba client, It will show three dirctories. I hope only show samba directory.

How to config the smb.conf.

[samba]
comment = Test Share 
read only = no
path = /home/samba
valid users = A,B
write list = A

[test1]
comment = Test Share 
read only = no
path = /home/samba/test1
valid users = A,B
write list = A

[test2]
comment = Test Share 
read only = no
path = /home/samba/test2
valid users = A,B
write list = A,B
share|improve this question

migrated from stackoverflow.com Apr 25 '13 at 7:53

This question came from our site for professional and enthusiast programmers.

1 Answer 1

add this to the testx shares: browseable = no

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.