RE: [Perl-beginners] Perl script to switch user to root.
From: Remko Lodder (remko_at_elvandar.org)
Date: 03/04/04
- Next message: Wc -Sx- Jones: "Re: Perl script to switch user to root."
- Previous message: Michael C. Davis: "Cache::Filecache Question"
- Next in thread: Silky Manwani: "Re: [Perl-beginners] Perl script to switch user to root."
- Reply: Silky Manwani: "Re: [Perl-beginners] Perl script to switch user to root."
- Maybe reply: Remko Lodder: "RE: [Perl-beginners] Perl script to switch user to root."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: "Silky Manwani" <silkym@mac.com>, <beginners@perl.org> Date: Thu, 4 Mar 2004 19:08:09 +0100
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: perl-beginners-bounces@lists.elvandar.org [mailto:perl-beginners-bounces@lists.elvandar.org]Namens Silky Manwani Verzonden: donderdag 4 maart 2004 19:03 Aan: beginners@perl.org 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: beginners-unsubscribe@perl.org For additional commands, e-mail: beginners-help@perl.org <http://learn.perl.org/> <http://learn.perl.org/first-response> _______________________________________________ Perl-beginners mailing list Perl-beginners@lists.elvandar.org http://lists.elvandar.org/mailman/listinfo/perl-beginners
- Next message: Wc -Sx- Jones: "Re: Perl script to switch user to root."
- Previous message: Michael C. Davis: "Cache::Filecache Question"
- Next in thread: Silky Manwani: "Re: [Perl-beginners] Perl script to switch user to root."
- Reply: Silky Manwani: "Re: [Perl-beginners] Perl script to switch user to root."
- Maybe reply: Remko Lodder: "RE: [Perl-beginners] Perl script to switch user to root."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|