in reply to Getting perl code to run sgid

non perl answer - investigate sudo

-derby

update: Hey come on now about the down vote. This is a perfectly reasonable alternative.

Replies are listed 'Best First'.
Re: Re: Getting perl code to run sgid
by dsheroh (Monsignor) on May 22, 2002 at 15:31 UTC
    Considered it, but then I'd have to retrain the users to type sudo -u esper pm-print... instead of just pm-print.... So much uglier (and so much more trouble) than just setting a simple sgid bit.
      pm-print just becomes

      `exec sudo -u esper pm-print.pl @ARGS`

      -derby