Edit the group file in your /etc directory, adding the group name of your
choice to the file. Look at the format of the other groups and the user
names with them and add your user names to that group respectively. Once
you have done that, you can simply change the ownership of your script,
blah.sh like so, assuming you chose "blah" as a group name.

chown root.blah blah.sh
 
now change permissions:

chmod 770 blah.sh

you have read/write/execute bits on that script for all users in the blah
group as well as root and no permissions set for all other users and/or
groups.

----------
> From: Joel Robert Oliveira <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: groups
> Date: Friday, June 19, 1998 12:20 AM
> 
> 
> i have some programs that i would like only a select few people to run, 
> and I'm not too familiar with managuing groups and  such (just yet ;). 
> for example:
> 
> I have shell script called "blah.sh"
> this script is just going to run one of a handful 
> of programs based on that decision. The programs are also gonna be 
> accessable through the web ( don't worry about security .. they're 
> harmless, and I've already assumed the worst-case ) so "nobody" will need

> to be able to run them. 
> 
> What I need to do is - make a group that will include a few people and 
> "nobody" so that a cgi I wrote can exe one of these programs depending on

> what they choose in a form. So to cut to the chase .. how do I make a new

> group .. and add about 4 people to that group =) ?
> 
> thanks !
> 
> 
>                 Joel Oliveira
>               icq: 12196417
>             [EMAIL PROTECTED]
> http://morpheus.hartford.edu/cs/student/joliveir
> 
> 
> 
> -- 
>   PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST
ARCHIVES!
> http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips
/mailing-lists
>          To unsubscribe: mail [EMAIL PROTECTED] with 
>                        "unsubscribe" as the Subject.
> 


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to