Blame tests/p_shadow-utils/13-chpasswd_tests

Athmane Madjoudj 536354
#!/bin/bash
Athmane Madjoudj 536354
# Author: Iain Douglas <centos@1n6.org.uk>
Athmane Madjoudj 536354
Christoph Galuschka 06c925
t_Log "Running $0 - Checking chpasswd"
Athmane Madjoudj 536354
Athmane Madjoudj 536354
chpasswd -e <
Athmane Madjoudj 536354
shadowuser:maryhadalittlelamb
Athmane Madjoudj 536354
EOF
Athmane Madjoudj 536354
t_CheckExitStatus $?
Athmane Madjoudj 536354
echo "Check /etc/shadow updated"
Athmane Madjoudj 536354
grep -q "maryhadalittlelamb" /etc/shadow
Athmane Madjoudj 536354
t_CheckExitStatus $?