[Cialug] Need assistance with chown and find commands
Zachary Kotlarek
zach at kotlarek.com
Fri Dec 20 12:33:57 CST 2013
On Dec 20, 2013, at 10:17 AM, Kelly Slaugh <kelly at visionary.com> wrote:
> I've also thought of changing the permissions inside of fstab to try and force the gid permissions. This failed as well because it's not a server problem. The Problem is with the Mac's & Adobe. The gid=grpA,mode=664 didn't work.
You can force a group and permissions in smbd directly, regardless of what any client requests.
You probably want something like this in the share permissions:
create mask = 0775
directory mask = 0775
those masks are AND’d onto whatever permissions would otherwise be set. I believe the default is 0744, which could easily create the problem you’re seeing.
If that’s not enough you can use the more forceful:
force group = foo
force create mode = 0775
force directory mode = 0775
which is OR’d onto whatever permissions would otherwise be set. This will force all files and folders to be group writable at creation no matter what.
Samba also supports a number of inherit modes (for ACLs, owner, permissions, etc.) that might be useful.
Zach
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2749 bytes
Desc: not available
URL: <http://cialug.org/pipermail/cialug/attachments/20131220/743ec510/attachment-0001.bin>
More information about the Cialug
mailing list