linux
a@ubuntu:~$ sudo gedit /etc/samba/smb.conf
tu:~$ sudo /etc/init.d/samba restart
[sha]
comment = share folder
browseable = yes
path = /home/a/share
create mask = 0777
directory mask = 0777
valid users = a
force user = nobody
force group = nogroup
public = yes
available = yes
[bb]
comment = share folder
browseable = yes
path = /home/a/shareb
create mask = 0777
directory mask = 0777
valid users = b
force user = nobody
force group = nogroup
public = yes
available = yes
windows