On Fri, 9 Feb 2001, John Clarke wrote:
> On Fri, Feb 09, 2001 at 10:16:12AM +1100, Simon Bryan wrote:
>
> > looking for some kind person who knows about these things to send me a
> > short script that would call 'passwd' repeatedly from names in a file and
>
> When run as root, and given a username, `passwd' asks for the new
> password twice.
Not necessarily. Use the --stdin option, e.g.:
foreach username ( .... ) {
echo new-password | passwd --stdin $username
}
problem solved.
> do what you need. Below is a working example (generated by autoexpect
Boy - thats doing things the hard way.
--
Mike Holland <[EMAIL PROTECTED]>
--==--
It is always the best policy to tell the truth, unless, of course,
you are an exceptionally good liar. -- Jerome K. Jerome
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug