Thanks for A.J. Venter.  
 
But, as for restrict access to groups, I have a more complicated question: 
 
If I have 6 groups of user. The group names are: sec1, sec2, sec3, sec4, admin1, 
admin2. Each group includes many 
member users. 
 
And I have 3 applications. say, 1. /usr/bin/evolution,  2. /usr/bin/mozilla 3. 
/usr/bin/vim 
 
I want applications /usr/bin/evolution   /usr/bin/mozilla/ to be available to all 
member users in sec1, sec2, sec3, sec4; 
and all above 3 applications available to member users in admin1, admin2 groups.  
 
That is to say, that I want to give access of some application program to multiple 
groups. How can we do this in 
Linux/Unix? 
 
Dongsheng 
 
 
 "A.J. Venter" <[EMAIL PROTECTED]>: 
 
> It is doable but it will take some work. 
> 
> First create a unix group for teachers, and another for students. 
> 
> Next find the actual files that load the programs you want to restrict. 
> Say /usr/bin/evolution  
> Change the group ownership of that file to teachers: 
> chgrp teachers /usr/bin/evolution 
> Remove execute permissions for all: 
> chmod a-x /usr/bin/evolution 
> Finally give execute permissions to owning group: 
> chmod g+x /usr/bin/evolution 
> 
> Users in the teachers group can now run evolution, but nobody else can. 
> 
> Variations on the theme should give you most of what you need.  
> 
> Ciao 
> A.J. Venter 
> On Thursday 19 Jun 2003 5:08 pm, dongsheng wrote: 
> > example: 
> > 
> > we have two groups of user, students and teacher. each 
> > group includes several users. 
> > 
> > we want to make some resources such as applications 
> > only available to members in teachers group, while some 
> > other applications are available to members in students 
> > group. It also means that students are not allowed to 
> > access some files which only teathers can access. 
> > 
> > can sb help me for that? 
> > 
> > 
> > ------------------------------------------------------- 
> > This SF.Net email is sponsored by: INetU 
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner> . 
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission> ! 
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php 
> > _____________________________________________________________________ 
> > Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto: 
> >       https://lists.sourceforge.net/lists/listinfo/ltsp-discuss 
> > For additional LTSP help,   try #ltsp channel on irc.freenode.net 
> 
>  


-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.freenode.net

Reply via email to