Debian SMB share having permission issues in windows 7

Posted by xxpor on Server Fault See other posts from Server Fault or by xxpor
Published on 2011-03-14T01:30:49Z Indexed on 2011/03/17 8:12 UTC
Read the original article Hit count: 147

Filed under:
|
|
|

Hi Everyone,

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 (sdb1, sdc1, etc), but cannot write to any folders that they create themselves in the subdirectories of media. For example, if the user mapped /media/sdb1 to 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.

Screenshots are here

© Server Fault or respective owner

Related posts about linux

Related posts about Windows