I have a script, which is installing a guest machine on a xen server.
It installs automatically. But in one step, I'll be asked for a password.
The following happens:
Enter new UNIX password: Retype new UNIX password: passwd: Authentication token manipulation error
How can I send the password "1234" at this time? Maybe with expect and send?
Here is the command, which executes passwd:
chroot /mnt/vms/install /usr/bin/passwd root
It's an internal server, so it must not be very secure.