[NTLUG:Discuss] Permissions

Greg E Gregory.Edwards at usa.alcatel.com
Fri Sep 3 12:22:19 CDT 1999


Each student is a member of their own group, ie mary is user and member of
group mary, that's the default behavior of adding a user.  Create a group
that is called teacher_1.  Give yourself groups permission to that group but
do not give it to your students.  Now make all student homes the student 
owner and group teacher_1.  From /home "su root", "chgrp -R teacher_1 *",
"chmod -R o=rwx, g=rwx, o=", "exit".  If you want all students to be able to
access other things add them as a member of a that group.  You could split
subjects up this way as well.  Just remember to give "rwxrwx---" to all
directories that you want selective access below.  A little less flexible,
IMO, is to make yourself a member of each student group.  IIRC default for
each file created in a dir gets the owner that created it and the group that
is assigned to the directory.

For example on the network I have at my SOHO each user has their own group
and for shared windows directories on my Linux system they are owned by root
and group is set to windows.  Each (Winxx) user is made a member of windows 
and the top window directory (which I have in /home) permissions is set to
"drwxrwx---".  This ways that only users that are allowed on the windows 
machine can access this directory because they are the only members of the
windows group.

You could also setup other teachers this way and make each group a member
of principle:)

Hope this is understandable:)

Greg E


Kathleen Weaver wrote:
> 
> I'm having a "concept" problems with permissions.  I'm used to Novell, and
> I want to do something similar.
> 
> I want to set up my teacher group to have full access to the student home
> directories.  How do I do that without giving students access to each
> directory.  I know how to do that in Novell.
> 
>  Kathleen
>  --------------------------------------------------------------------------
> | |  U-CDX Weaver's Peppermint Patty UD CGC Baylor Therapy Dog (beagle)  | |
> | |  Bettner's Byte of Magic (Marcie) (beagle)
> --------------------------------------------------------------------------
>   kathleen at metronet.com
>   http://www.metronet.com/~kathleen
>   http://www.click-l.com/
> 
> _______________________________________________
> http://ntlug.org/mailman/listinfo/discuss




More information about the Discuss mailing list