aufflick has asked for the wisdom of the Perl Monks concerning the following question:
Specifically I need to perform some Rational ClearCase modifications as their unix user to maintain the audit trail.
I have tried using su -c in a two-way pipe, but it insists that stdin must be a tty. sudo is not really feasable because it would need to be rolled out to a large number of linux and solaris boxes (which don't currently have it).
Neither CPAN or PerlMonks appear to have any options for a "run as" type module or snippet.
Update: I notice that the Expect modules uses IO::Tty which I guess I need to communicate with an interactive process like su. Of course I could use Expect.pm, but I want to steer away from this whole approach if I can and am looking for ideas, but in retrospect, somthing somewhere has to be a setuid binary, and it may as well be su...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Doing things as a different user
by merlyn (Sage) on Sep 27, 2004 at 00:14 UTC | |
by aufflick (Deacon) on Sep 27, 2004 at 01:04 UTC | |
by aufflick (Deacon) on Sep 27, 2004 at 00:40 UTC | |
|
Re: Doing things as a different user
by Zaxo (Archbishop) on Sep 27, 2004 at 00:11 UTC | |
by merlyn (Sage) on Sep 27, 2004 at 00:21 UTC |