Newgrpcmd 1.1


The newgrpcmd program has similar function to the standard Unix newgrp
command, except that newgrpcmd can spawn a user-specified command in place
of the shell.  This is useful for scripted environments where the stdin
stream must be piped or redirected, which is not possible with the standard
tool.

The newgrpcmd package includes source code for the newgrpcmd program itself
plus a man page.  The source code was originally written for Linux, but it
also compiles and runs on NetBSD, Solaris, HP-UX, and AIX.

To install this program, unpack the compressed tar archive.  Use a standard
C compiler to compile the source code.  Rename the a.out file to be
"newgrpcmd" and copy it to its final location.  It must be owned by root,
with its mode set to 4111 (setuid, with user, group, and world execute
permissions).  Copy the man page source (newgrp.1) to its final location,
renaming it to "newgrpcmd.1".  Then perform whatever preformatting and
indexing functions are needed by your system.

This program was originally written by Michael Haardt and maintained by
"poe" and Vesa Roukonen for the Linux project.  Paul D. Smith implemented
Paul Sander's idea of invoking a command with the primary group set, and
made a few other tweaks and optimizations.

The source code was supplied to Paul Sander with no copyright or license
notices.  Hence, it is assumed to be redistributable without restriction.

History:

1.0 -- Initial release.

1.1 -- Added support for ANSI compilers, and will now match a wildcard in the
       group name if it does not exactly match an existing group.  The match
       is the first group that both matches the wildcard and in which the user
       is a member.
      Name                    Last modified       Size  Description

[DIR] Parent Directory 13-Aug-2005 12:37 - [CMP] newgrpcmd.tar.Z 13-Aug-2005 12:36 6k

Apache/1.3.33 Server at zul.wakawaka.com Port 80