[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Group Change
- Subject: [ale] Group Change
- From: jlangseth at esisys.com (Jacob Langseth)
- Date: Thu, 3 Dec 1998 15:02:05 -0500
> Does anyone know where I can download and compile sg from, or is there
> another way to use newgrp without replacing my shell?
An alternative to replacing your shell would be to keep
a wrapper for whatever action you wished to do under
the new group in a directory only accessable to the
owner of the cronjob. The wrapper would be sgid to
the appropriate group and either invoke the command
directly via an execle() or perhaps just be a sgid copy
of /bin/sh (in which case it would be used via
~/.secure/sgid_sh -c <foo>
). Either method should work.
--
Jacob Langseth <jlangseth at esisys.com>
Enhanced Systems, Inc.