--- branches/magellan-next/core/shadow/shadow-4.1.4.3-r3.smage2 2011/08/02 10:15:58 8828 +++ branches/magellan-next/core/shadow/shadow-4.1.4.3-r3.smage2 2011/08/03 07:37:50 8843 @@ -130,5 +130,13 @@ then /usr/sbin/pwconv /usr/sbin/grpconv + elif [[ -x /sbin/chroot ]] && [[ -d ${MROOT} ]] + then + chroot ${MROOT} /usr/sbin/pwconv || die + chroot ${MROOT} /usr/sbin/grpconv || die + else + echo "pwconv and grpconv could not run in MROOT='${MROOT}'." + echo "PAM is not usable without any shadow/gshadow files." + echo "Please chroot in your systemroot and run them by hand." fi }