perhaps you should let the script do something like SUDO, and permit it to run a single command, or limited commandset of root operations, even without password, (you dont want that actually but since sudo can log stuff, it might be what you aim for)
Cheers -- Kind regards, Remko Lodder Elvandar.org/DSINet.org www.mostly-harmless.nl Dutch community for helping newcomers on the hackerscene -----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Silky Manwani Verzonden: donderdag 4 maart 2004 19:03 Aan: [EMAIL PROTECTED] Onderwerp: [Perl-beginners] Perl script to switch user to root. Hello, I want to write a perl script to switch user (to root). The problem is that since it asks for the password, I am not sure how I would pass it thru the script. I know I can run the "su root" with the system command in perl, but how do I take care of passing the password. Thanks. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> _______________________________________________ Perl-beginners mailing list [EMAIL PROTECTED] http://lists.elvandar.org/mailman/listinfo/perl-beginners -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>