HP9000-L Archives

February 2004

HP9000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Keven Miller <[log in to unmask]>
Reply To:
Keven Miller <[log in to unmask]>
Date:
Tue, 24 Feb 2004 12:01:51 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
> What it sounds like you are trying to do is make it so that 
> when you create
> a file (via touch or other means), it creates it with group 
> mpe as the group
> owner.  Assuming you are a member of mpe, (with Wizard) as 
> your default, you
> need to change your default group ID to mpe (from Wizard).  The newgrp
> command will do this for you.

Yes, I thought so also.
But you can't put newgrp in a script.
Well, you can, but that ends the script because newgrp issues a
new shell.

For users that may have multiple group assignments, I wanted
to create a script that they can run which would place them
into the correct group, run the application(s), and hopefully
when they exit, return them to their starting point.

I didn't want to require all users of my app to have their primary
group be the required one.

Other than newgrp, it appears that you can't change your group.
Thats when I remembered the setgid bit.

___________________________________________________________________
Keven Miller   mailto:[log in to unmask]   http://www.exegesys.com

ATOM RSS1 RSS2