Microsoft programs overwrite default mask

Help Help at wiu.edu
Mon May 14 19:52:59 GMT 2007


I have a Unix directory with permission set using ACL as follows:
 
# file: testdir
# owner: sftp
# group: student
user::rwx
user:user1:rwx         #effective:rwx
user:user2:rwx          #effective:rwx
group::---              #effective:---
mask:rwx
other:---
default:user::rw-
default:user:user1:rwx
default:user:user2:rwx
default:user:sftp:rwx
default:group::---
default:mask:rwx
default:other:---
 
When user1 drops a file - copies it from a directory on the windows machine - into this share (testdir), it gets the following permissions:
 
# file: testfile
# owner: user1
# group: student
user::rwx
user:user1:rwx         #effective:rw-
user:user2:rwx          #effective:rw-
user:sftp:rwx                #effective:rw-
group::---              #effective:---
mask:rw-
other:---

Which is correct.  However, if he uses MS word or Excel and "Save As" directly to the testdir share, it gets the following permissions:
 
# file: testfile
# owner: user1
# group: student
user::rwx
user:user1:rwx         #effective:-w-
user:user2:rwx          #effective:-w-
user:sftp:rwx                #effective:-w-
group::---              #effective:---
mask:-w-
other:---

Which is wrong?
 
I have tried to change samba options, but no luck. The current options are as follows:
 
[testdata]
   comment = Transfer area
   browseable = no
   read only = no
   path = /home/sftp/Data
   public = no
   writeable = yes
   inherit permissions = yes
   create mask = 0700
 
   #force create mode = 0660
   #force directory mode = 0770
   #create mask = 0000
   #directory mask = 0000
   #force create mode = 0660
   #nt acl support = no
   #security mask = 0000
   #inherit acls = yes

 
PS. the commented options are some of my tries.
 
Thanks,


More information about the samba-technical mailing list