Root login using stdin
Although the man page for su doesn't state it explicitly, the required password must always be typed manually, it cannot be piped into su.

It has something to do with security ;-)