Douglas E. Miles doug.miles at
Mon Nov 8 14:40:35 CST 1999

Kevin Buettner wrote:
> On Nov 8, 11:54am, Douglas E. Miles wrote:
> > I have a little more information on the problem.  I was originally
> > running this as 'user2' (test user), and the script was owned by
> > 'user2'.  It appears to work right up until the actual change is to take
> > effect.  I tried changing the ownership to root and running it as root,
> > and BINGO!, it changes the root password.  Unfortunately this isn't what
> > I want.  Any ideas are appreciated.  I'm still hacking away...
> Try
>     my $passwd = Expect->spawn("/usr/bin/passwd $username");
> instead.  (Set $username as appropriate.)

Thanks for the suggestion Kevin.  I think that this is the best I can
do.  I'd like to figure out why it doesn't work as user2, but I've
already spent way too much time on this.  Thanks again.

For a list of the ways which technology has failed
to improve our quality of life, press 3.

More information about the Phoenix-pm mailing list