I'm using ubuntu server 10 and I have this configuration in my smb.conf:

[www]
        comment = Web files
        path = /var/www
        browsable = yes
        writeable = yes
        create mask = 0775
        directory mask = 0775
        valid users = @developers

When I connect trough MAC OSX machine and create a file or directory the permissions are set with 755.

Why?

link|improve this question

75% accept rate
feedback

2 Answers

The "create mask" simply means that samba users are allowed to modify those permissions up to the mask, meaning if you set it to 777, then the user can modify all bits. This is not the same as unix file masks. Your setting is 0775, meaning that users can modify the permissions on User (rwx), Group (rwx) and Other (rw). This doesn't mean that the files will be created with those permissions, just that the user can use those permissions. To force a set of permissions, use something like:

security mask = 0550
force security mode = 0550
directory security mask = 0550
force directory security mode = 0550

What permissions were you trying to achieve btw?

link|improve this answer
I don't think so. When accessing through windows machines the permissions are set 775 for new files and directories. The problem is only when accessing through macosx. After a while I figure it out setting this global variable: unix extensions = off discussions.apple.com/thread.jspa?messageID=7349655 – Keyne Sep 3 '10 at 14:09
feedback
up vote 0 down vote accepted

After a while I figure it out setting this global variable: unix extensions = off

http://discussions.apple.com/thread.jspa?messageID=7349655

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.