I have a problem with the directory/file mask after upgrading to OS X leopard. The configuration of the share is:
comment = Test-Daten
path = /u1/data/test
browseable = yes
read only = no
guest ok = no
valid users = @TEST/testuser
create mask = 0760
directory mask = 0770
delete veto files = yes
hide dot files = no
strict locking = yes
dos filemode = yes
force group = Domain Users
force create mode = 0660
force directory mode = 0770
Since I have upgraded to Leopard the permissions masks are not being honored when I work with the share using Finder. If I create a file or folder with Linux, Windows or OS X 10.4 that would have permissions like this:
-rw-rw---- 1 wolfgang domain users 326 Dec 6 12:01 index.rtf
The permissions with leopard on a new file are now like this:
-rw-r--r-- 1 wolfgang domain users 326 Dec 6 12:01 index.rtf
This only happens through Finder. If I connect to the share using smbclient and create a file or directory the permission mask is correctly applied. I connect to the share as a user with proper access to the remote filesystem and NOT as a guest user.
Kind regards, Wolfgang
You might want to try "unix extensions = no". Please tell us if this helps.
it looks very good, now Leopard use the correct mask for file/directory creation.
Thanks for your help, Wolfgang
sorry, my fault, the problem still exist.
The Finder copies the local permission to the share, regardless the setting for the mask in the samba config
kind regards, wolfgang
Please upload a full debug level 10 log of the smbd behaving incorrectly, with "unix extensions = no"
hmmm, I believe rtfm is everytime a good tip. unix extensions is a global parameter, I use it as a lokal parameter in my share definition. Now I will test the behavior with unix extensions and will be back after testing.
Thanks for your patience, wolfgang