Phoenix.pm: Expect.pm question
Douglas E. Miles
doug.miles at bpxinternet.com
Mon Nov 8 14:03:00 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...
> my $passwd = Expect->spawn("/usr/bin/passwd $username");
> instead. (Set $username as appropriate.)
Is that assuming that the script is running as root? I'd like to avoid
that if possible.
For a list of the ways which technology has failed
to improve our quality of life, press 3.
More information about the Phoenix-pm