... be able to wright ...
you mean 'write', right.
I can say only that you set the permissions to 777 is ok.
Then when you want all the users to be able to write to the shared dir use a configuration like:
# This one is useful for people to share files
[profiles]comment = Profiles
path = /var/data/profiles
read only = no
browseable = yes
writable = yes
guest ok = yes
public = yes
to all directories you want to share (in your case all subdirectories set to 777 - /var/data/public , /var/data/profiles )
then all the files will be owned by 'nobody' and shared to all users,
otherwise you may take a look to example from "smb.conf"
# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
From my point of this setup in my company we have also some XP, Vista, Win 7 computers shared 2 folders on 'server' and this is working to all users can read/write the files.