[Gllug] ACL solution to samba created unowned files?

John Edwards john at cornerstonelinux.co.uk
Sun Aug 23 20:56:26 UTC 2009


On Sun, Aug 23, 2009 at 08:14:02PM +0100, John Winters wrote:
> general_email at technicalbloke.com wrote:
>> I think the
>> trick was using an ace to make all new files created in that folder
>> members of a group and then make my user a member of that group. Does
>> that sound right / plausible ? If so, can anyone enlighten me as to the
>> syntax / procedure?
> 
> If you change the group of the directory to one of your creation, and 
> then set the group bit on the directory, all files created within that 
> directory will inherit the group ownership (unless Samba does something 
> funny).
> 
> $ chgrp mygroup mydir
> $ chmod 2775 mydir

Samba does not always obey the SetGID, and you may also need to
set the "force group" option for that share.

There is also a whole bunch of force file/directory mode/mask
options.


-- 
#---------------------------------------------------------#
|    John Edwards   Email: john at cornerstonelinux.co.uk    |
#---------------------------------------------------------#
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20090823/237fac05/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list