Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Changing passwords using through ssh on a large number (75) of systems

by ferrency (Deacon)
on Jul 11, 2002 at 18:55 UTC ( #181110=note: print w/replies, xml ) Need Help??

in reply to Changing passwords using through ssh on a large number (75) of systems

This doesn't answer your question, but it might solve your problem:

You might want to see if your system has a chpass or pw command. chpass lets you change an account's password by specifying an encrypted password on the command line, which would alleviate your need for passwd completely.

However, because the encrypted password is specified on the command line, be aware that it may show up on your system's process list. It may not be a good idea to do this on a system with untrusted users, if those users are allowed to get info about processes they don't own. In this case, your method would be better, but unfortunately I don't have enough experience with the Expect module to help you very much :)


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2019-11-13 02:02 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (68 votes). Check out past polls.