All,

I am executing this:

chroot /mnt/node1 echo password | /usr/bin/passwd root --stdin

and expecting it to set the password in /mnt/node1/etc/shadow. However, it is updating the /etc/shadow file. I've seen quite a few people suggesting this approach for setting a password in a script, but for some reason it isn't working for me.

Any ideas?

Doug.