On Tue, Jun 10, 2003 at 12:34:19PM -0400, Chris Staskewicz wrote:
> Currently I'm running the Perl script at the command-line with a
> "./run.pl".  The problem is that once Perl hits the system call, the shell
> hangs until I manually type "exit".  Then the program chokes since all the
> code after the "be" call requires the permissions from "be".  Any ideas on
> passing the "be" info to Perl and stop this hanging?

I think your 'be' program spawns a shell with the requested permissions.
This means that if you run it from within a script, it won't alter the
EID of the script, but instead give you an interactive shell.  

I fear the only solution that I can I think of is to use 'be' or 'su'
before starting the script, then running it as the desired user.

PS.  I suspect your 'be' program is just an suid'ed su - meaning you
     could pass it some flags to run a program with the new shell.
     Something like:

       su project -c ./script

-- 
Dan Boger
[EMAIL PROTECTED]
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to