Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: send su password in ssh

by sundialsvc4 (Abbot)
on Sep 27, 2010 at 21:34 UTC ( [id://862307]=note: print w/replies, xml ) Need Help??


in reply to send su password in ssh

A far better strategy, if you absolutely must use a programmatic login or su, is to arrange for login to occur using SSH public/private keys.   The script would present its key to avoid the possibility of an actual password challenge.

Naturally, I am extraordinarily uncomfortable with the idea of a script logging on as root...   Almost as uncomfortable as I am with the notion of a script possessing credentials that would allow (anyone) to do so.

Replies are listed 'Best First'.
Re^2: send su password in ssh
by dwm042 (Priest) on Sep 28, 2010 at 21:56 UTC

    sundialsvc++!!

    Login as an untrusted user and drop stuff off. The working user (probably does not need to be root) can poll for the submission and then "do stuff".

    crontab is your friend here.

    David.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2025-07-16 08:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.