Root login using stdin Can anyone tell me why this does not work?

test:~ test$ echo 123 | su root
su: Sorry


Thanks
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 ;-)