linux-pam/xtests/tst-pam_shells.sh
Stefan Schubert e4917734c6 pam_shells: Added xtest test case
Test case for checking pam_authenticate in pam_shells.
2022-12-07 16:24:09 +01:00

12 lines
363 B
Bash
Executable File

#!/bin/sh
/usr/sbin/groupadd tstpamshells1
/usr/sbin/useradd -s /bin/testbash -G tstpamshells1 -p '!!' tstpamshells
/usr/sbin/useradd -s /bin/testnoshell -G tstpamshells1 -p '!!' tstnoshell
./tst-pam_shells
RET=$?
/usr/sbin/userdel -r tstpamshells 2> /dev/null
/usr/sbin/userdel -r tstnoshell 2> /dev/null
/usr/sbin/groupdel tstpamshells1 2> /dev/null
exit $RET