Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Just another Perl shrine
 
PerlMonks  

Re: Re: Re: Net::SSH::Perl and su

by mikfire (Deacon)
on Mar 09, 2002 at 01:42 UTC ( #150478=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Net::SSH::Perl and su
in thread Net::SSH::Perl and su

Alas, if only it were that easy. I can't use sudo for two main reason. First, the command I want to run is going to change. Second, due to some serious security concerns, there is no way I could convince them to allow me to use the NOPASSWD option in sudo.

mikfire


Comment on Re: Re: Re: Net::SSH::Perl and su
Re: Re: Re: Re: Net::SSH::Perl and su
by rob_au (Abbot) on Mar 09, 2002 at 04:01 UTC
    ... due to some serious security concerns, there is no way I could convince them to allow me to use the NOPASSWD option in sudo.

     

    To my mind, it is of greater concern that fact that you are looking to store the root and a user password into a remote script. All one would have to to is view the source of your script and they would have both a login and the root account on the remote system - A restricted shell with sudo access rights to a small selection of administrative commands would be a better choice to my mind by far.

     

    perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://150478]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2014-04-20 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (486 votes), past polls