[comp.unix.xenix.sco] Can a user change groups? Instead of [s]et [u]ser - [s]et [g]roup

bill@twg.bc.ca (Bill Irwin) (03/02/91)

I'm wondering if there is a way for a user to temporarily change
their group.  That is, register a user as a member of more than
one group in the /etc/group file, then have one of the group id
numbers set in /etc/passwd, so that they belong to their main
group when they log in.  If they later want to access some files
that are not owned by them, nor their group, but are of a group
that they are also a member of - they would change their group,
work with the files, then return to their original group.

The concept is exactly the way the su facility works.  Could it
be called "sg" for "set group"?
-- 
Bill Irwin    -       The Westrheim Group     -    Vancouver, BC, Canada
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
uunet!van-bc!twg!bill     (604) 431-9600 (voice) |     Your Computer  
bill@twg.bc.ca            (604) 430-4329 (fax)   |    Systems Partner

cliffb@cjbsys.bdb.com (cliff bedore) (03/02/91)

In article <995@twg.bc.ca> bill@twg.bc.ca (Bill Irwin) writes:
>I'm wondering if there is a way for a user to temporarily change
>their group.  That is, register a user as a member of more than
>one group in the /etc/group file, then have one of the group id
>numbers set in /etc/passwd, so that they belong to their main
>group when they log in.  If they later want to access some files
>that are not owned by them, nor their group, but are of a group
>that they are also a member of - they would change their group,
>work with the files, then return to their original group.
>
>The concept is exactly the way the su facility works.  Could it
>be called "sg" for "set group"?
>-- 
>Bill Irwin    -       The Westrheim Group     -    Vancouver, BC, Canada
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>uunet!van-bc!twg!bill     (604) 431-9600 (voice) |     Your Computer  
>bill@twg.bc.ca            (604) 430-4329 (fax)   |    Systems Partner

See newgrp.  It does exactly what you want.  We use it extensively to maintain
security on our systems.  

Cliff

mike (03/03/91)

In an article, bill@twg.bc.ca (Bill Irwin) writes:
>The concept is exactly the way the su facility works.  Could it
>be called "sg" for "set group"?

apropos group || man newgrp || help newgrp || RTFM

Argh!
-- 
Michael Stefanik, MGI Inc., Los Angeles| Opinions stated are not even my own.
Title of the week: Systems Engineer    | UUCP: ...!uunet!bria!mike
-------------------------------------------------------------------------------
Remember folks: If you can't flame MS-DOS, then what _can_ you flame?