Red Hat Bugzilla – Bug 222208
Installation not using shadow passwords by default
Last modified: 2007-11-30 17:11:52 EST
Description of problem:
In the Xen context, I have created images for virtualization using yum to
groupinstall base, etc. Upon instantiation, shadow passwords are not used.
pwconv must be used to convert to shadow passwords
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.yum --installroot=/mnt/fc6image groupinstall base (and others)
2.chroot /mnt/fc6image /usr/sbin/useradd abc -p blah_encrypted_blah_blah
3./mnt/fc6image/etc/shadow does not exist
Shadow does not exist, password in passwd
passwd contains :x: and shadow contains the password
Fix is to use pwconv. For this unsuspecting (like me before I found out), this
can be a flaw waiting to be exploited.
shadow-utils doesn't use /etc/shadow, because it doesn't exit.
# rpm -qf /etc/shadow
Phil, do you know something about this?
Installing a guest using yum will by default use the most basic and default
configuration for it (resp. it will be completely unconfigured). And an
unconfigured system will by default not use /etc/shadow. So this is expected and
Using a proper installer (like anaconda) to setup up guest or by running
firstboot after doing it with yum will result in a proper set up guest.
Read ya, Phil