[Gllug] ACL solution to samba created unowned files?

general_email at technicalbloke.com general_email at technicalbloke.com
Mon Aug 24 21:01:36 UTC 2009


John Edwards wrote:
> 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.
>
>
>   
Thanks everyone for your suggestions. Force group sounds like the most
likely candidate, cheers :)

Roger.
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list