r.org/DSINet.org
www.mostly-harmless.nl Dutch community for helping newcomers on the
hackerscene
-Oorspronkelijk bericht-
Van: Silky Manwani [mailto:[EMAIL PROTECTED]
Verzonden: donderdag 4 maart 2004 19:15
Aan: Remko Lodder
CC: [EMAIL PROTECTED]
Onderwerp: Re: [Perl-beginners] Perl scri
Actually, My program has a list of stuff to be done which needs to be
done as say user "x". Then I need to switch user to root as the rest of
the program needs to do stuff as user root.
so, me doing
system("sudo su root");
doesn't help as it asks for the password.
On Mar 4, 2004, at 10:08 AM,
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
Elvanda