Apurdue.125
net.unix-wizards
utzoo!decvax!pur-ee!purdue!mab
Thu Sep 10 14:51:25 1981
changing groups and newgrp
    I use a program called "sg", which acts just like "su" except that  it
changes  groups;  this is a bit better than "newgrp" because if you mistype
your group name or can't change to the given group for any reason you don't
get  logged  off.  It's  basically just like "su", so you lose your history
list (if you're in C-Shell) or any  unexported  environment  variables  (if
you're  in  the Bourne shell). To return to your login group, just exit the
subshell.
    One note: it has to be run as setuid to root. Otherwise, you can't  do
the required setgid.
                                                       Matt

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.