in reply to su to root in a perlscript
virtualsue kicked around a problem that sounds a lot like this earlier this year in Running Perl program w/root privs via cron, which might contain some info useful to you as well.
Although it may not be quite what you're needing, in addition to the comments so far regarding the use of sudo, depending on the operations and environment there may also be the possibility you could use ssh public/private key pairs lacking passwords to do specific operations. Doing so would also have the advantage of not requiring your root password to reside in the scripts.
Hope all the comments help, and maybe let us know which solution worked out best for you and why, maybe.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: su to root in a perlscript
by NaSe77 (Monk) on Aug 01, 2002 at 14:40 UTC | |
by crenz (Priest) on Aug 01, 2002 at 18:08 UTC |