in reply to Change linux root passwor

The passwd I have on my Linux boxes has a --stdin command line option, allowing it to read the password from STDIN or a pipe.