POSTIN
/bin/sh
# remove tcb and use sha512
sed -i 's/^CRYPT_PREFIX.*/ENCRYPT_METHOD SHA512/g' /etc/login.defs
sed -i -re 's/(^USE_TCB[ \t]+yes)/#USE_TCB yes/g' /etc/login.defs
sed -i -re 's/(^TCB_AUTH_GROUP[ \t]+yes)/#TCB_AUTH_GROUP yes/g' /etc/login.defs
sed -i -re 's/(^TCB_SYMLINKS[ \t]+yes)/#TCB_SYMLINKS yes/g' /etc/login.defs
sed -i -re 's/(^USE_TCB[ \t]+no)/#USE_TCB no/g' /etc/login.defs
sed -i -re 's/(^TCB_AUTH_GROUP[ \t]+no)/#TCB_AUTH_GROUP no/g' /etc/login.defs
sed -i -re 's/(^TCB_SYMLINKS[ \t]+no)/#TCB_SYMLINKS no/g' /etc/login.defs
Triggers
shadow-utils <=
4.4-1.2.mga6
shadow_lock = "/etc/shadow.lock"
st = posix.stat(shadow_lock)
if st and st.type == "regular" and st.size == 0 then
os.remove(shadow_lock)
end