Set umask, set permissions, and set ACL, but SAMBA isn't using those?

Posted by Kris Anderson on Ask Ubuntu See other posts from Ask Ubuntu or by Kris Anderson
Published on 2012-11-02T02:38:55Z Indexed on 2012/11/02 5:23 UTC
Read the original article Hit count: 598

Filed under:
|
|
|
|

I'm running on Ubuntu Server 12.04. I have a folder called Music and I want the default folder permissions to be 775 and the default file to then be 664.

I set the default permissions on the Music folder to be 775.

I configured ACL to use these default permissions as well:

file: Music

owner: kris

group: kris

flags: ss-

user::rwx group::rwx other::r-x default:user::rwx default:group::rwx default:other::r-x

I also changed the default umask for my user account, kris, to 002 in .profile.

Shouldn't and new file/folder now use those permissions when writing to the Samba share? ACL should work with Samba from what I can gather.

Currently, if I write to that folder using my mac, folders are getting 755 and files 644. I have another app on my mac called GoodSync which which is able to sync a local directory on my mac to a network samba share, but those permissions are even worse. files are being written as 700 using that program.

So it looks like Samba is allowing the host/program to determine the folder/file permissions.

What changes do I need to make to force the permissions I want regardless of what the host tries to write on the server?

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about server