[K12OSN] file permissions for different groups?

cliebow at midmaine.com cliebow at midmaine.com
Wed Jun 7 19:52:11 UTC 2006


look into chmod g+s to froce file ownership to that group owning the
directory..chuck
> Les Mikesell wrote:
>
>>On Thu, 2006-05-18 at 15:09, Krsnendu Dasa wrote:
>>
>>
>>>I have a directory with files inside.
>>>I want staff to be able to view it but not write.
>>>I want admin group to be able to read or write.
>>>Noone else should be able to access it.
>>>
>>>How do I do that?
>>>
>>>
>>
>>Move it under another directory owned by a group containing
>>all the members of the staff and admin groups and a mode
>>that gives rx permission only to group, none to other.  Then
>>the existing directory can be group admin, rwx for group,
>>rx for other and the files group admin, rw group, r other
>>(other in this case being limited to the set that can get past
>>that upper directory).
>>
>>
>>
>>>Also I have a WinXP user who copies files to our samba server. Every
>>>time he copies something it is rw only for owner not group. How do I set
>>>it up so that when he copies files it is always rw for admin group?
>>>
>>>
>>
>>Samba has it's own settings.  In the share definition in
>>/etc/samba/smb.conf you can
>>force group = admin
>>force create mode = 0775
>>force directory mode = 0775
>>
>>
>>
> The tips above were very helpful. As and extension:-
>
> How do I force the mode for users who copy files to a directory using
> WinSCP?
> I don't want to give them the hastle of remembering to set the
> permissions themselves.
> e.g. School reports directory:- Teachers will upload folders containing
> their school reports. I want the owner (a member of staff group) and
> members of the admin group to be able to access it.
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>





More information about the K12OSN mailing list