I setup a Debian squeeze server with samba. I then shared my /media directory with the following configuration:
[media] comment=Hard Drives read only = no locking = no path = /media guest ok = yes browsable = yes directory mask = 0777
When the drives are mapped in Windows 7, the user can write to all of the subdirectories of media (
sdc1, etc), but cannot write to any folders that they create themselves in the subdirectories of media. For example, if the user mapped
Z:, and then creates a folder
Z:\test, the folder is created successfully, but no files can be written to
Z:\test. If the user ssh's into the server, they have no problems writing to these directories. I have included the screenshots, in order, of what happens on Windows. This samba share is mounted with ntfs-3g, if it makes a difference.