[Samba] chgrp work-around thingy
Vickie L. Kidder
Vickie.Kidder at TABASCO.com
Mon Apr 5 10:59:07 MDT 2010
We have these settings and users can create folders and files with the
ownership
and group as described in your example.
1. Samba config file has "inherit permissions = yes" in the settings for
the share.
2. Permissions for the folder are set to:
# chmod 774 /export/docs
# chmod g+s /export/docs
drwxrwsr-- /export/docs
samba-bounces at lists.samba.org wrote on 04/03/2010 06:13:39 PM:
> From:
>
> Todd E Thomas <thomas at ssiresults.com>
>
> To:
>
> Samba List <samba at lists.samba.org>, Todd E Thomas
<todd_dsm at ssiresults.com>
>
> Date:
>
> 04/05/2010 09:07 AM
>
> Subject:
>
> [Samba] chgrp work-around thingy
>
> Sent by:
>
> samba-bounces at lists.samba.org
>
> I have 2 user groups accessing documents in /export/docs: staff and
exec.
>
> I need to give users in the group 'staff' the ability to create folders
> and documents in /export/docs.
>
> On creation of (either) folders or documents in /export/docs, all items
> should be owned by their respective creators AND users in the 'exec'
> group; thus:
>
> # ll /export/docs/
> -rwxrwxr-- user1 exec 0 Apr 3 17:36 asdf.txt
>
> Again, user1 is a member of the group 'staff' but when creating files
> and folders in the docs directory they belong to owner/exec/other.
>
> Additionally, only the respective owner of the files and anyone in exec
> should be able to read/write, but permissions for 'other' should be
> read-only.
> ---
>
> I used force group in the docs share from the smb.conf man page but I
> must have done something wrong. I seem to be dancing around my target
> without hitting it. I'm ok on the permissions, just not sure about the
> group part of it.
>
> What is the proper way to accomplish this?
>
> --
> Thanks for the assist,
>
> Todd E Thomas
> C: 515.778.6913
> "It's a frail music knits the world together."
> -Robert Dana
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
More information about the samba
mailing list