Re: Perl script to switch user to root.

2004-03-05 Thread WC -Sx- Jones
David le Blanc wrote: SUID scripts are not secure. Modern OS's disable them. True; but it is difficult to ask for a firecracker when all you can use is a stick of dynamite... Besides, I forget, was the OP on MacOS? IMHO it is best to see if root MUST be the only recourse. Maybe alternatives we

RE: Perl script to switch user to root.

2004-03-05 Thread David le Blanc
> -Original Message- > From: WC -Sx- Jones [mailto:[EMAIL PROTECTED] > Sent: Friday, 5 March 2004 5:13 AM > To: Silky Manwani > Cc: [EMAIL PROTECTED] > Subject: Re: Perl script to switch user to root. > > Silky Manwani wrote: > > Hello, > > > &g

RE: [Perl-beginners] Perl script to switch user to root.

2004-03-04 Thread Remko Lodder
pt to switch user to root. 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 ask

Re: [Perl-beginners] Perl script to switch user to root.

2004-03-04 Thread Silky Manwani
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

Re: Perl script to switch user to root.

2004-03-04 Thread WC -Sx- Jones
Silky Manwani wrote: 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 p

RE: [Perl-beginners] Perl script to switch user to root.

2004-03-04 Thread Remko Lodder
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 p

Perl script to switch user to root.

2004-03-04 Thread Silky Manwani
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. Than

Re: switch user

2003-06-16 Thread Ahmed Moustafa
Steve Grazzini wrote: Ahmed Moustafa <[EMAIL PROTECTED]> wrote: [ That address is bouncing, by the way. ] It should not! What was the message that you got? How can I switch user "su" in perl? It's much easier to do that before running the script. :-) $ su -c ./scr

Re: switch user

2003-06-16 Thread Steve Grazzini
Ahmed Moustafa <[EMAIL PROTECTED]> wrote: [ That address is bouncing, by the way. ] > How can I switch user "su" in perl? It's much easier to do that before running the script. :-) $ su -c ./script.pl And then once you're root, you can change the real and effe

switch user

2003-06-16 Thread Ahmed Moustafa
How can I switch user "su" in perl? Thanks in advance, Ahmed -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]