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
> -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
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
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
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
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
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
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
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
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]
10 matches
Mail list logo