in reply to Expect module & su

How is the authentication failing? Is su failing, or is the Expect call timing out? Is there a newline attached to $exp->send("$password");? Is Expect failing to detect the prompt that signifies success? Try setting $exp->debug(3) to see what's actually being received by your code.

-Logan
"What do I want? I'm an American. I want more."