Bug 9730 - cifs mounted file creation is always 0777
Summary: cifs mounted file creation is always 0777
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.0.4
Hardware: x86 Linux
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-20 17:11 UTC by steve (retry timeout exceeded; no DNS MX or A record)
Modified: 2013-03-21 16:52 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description steve (retry timeout exceeded; no DNS MX or A record) 2013-03-20 17:11:09 UTC
mount -t cifs //server/share /mnt -osec=krb5,multiuser

No matter what is set in the share, any file created therein will always be created universal rwx.

I've tried:
create mode = 0755
create mode = 0644
create mask = 0755
create mask = 0644

in both [global] and [share] sections of smb.conf

This happens whether the share is mounted on the server as above, or on another linux client.

How do I get files to be created 755 or 644 as they are on the unmounted share?
Comment 1 steve (retry timeout exceeded; no DNS MX or A record) 2013-03-21 16:52:21 UTC
Solved in 4.0.4. I forgot to hit make install after building. Thanks.