Results 1 to 1 of 1
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 ...
- 03-29-2011 #1Just Joined!
- Join Date
- Oct 2009
- Posts
- 6
Setting passwd in chroot environment
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.


Reply With Quote