diff options
author | Stefan Schubert <schubi@suse.de> | 2022-11-15 13:55:40 +0100 |
---|---|---|
committer | Stefan Schubert <stefan@gefluegelhof-schubert.de> | 2022-12-07 16:24:09 +0100 |
commit | e4917734c63ef6e887b3c4760771a14f75b9eb1f (patch) | |
tree | ed56bd49808fbe0fceefe1777ec980ac6d9f72c3 /xtests/tst-pam_shells.sh | |
parent | 5c1d6301fe872d5954de5e4ddf74adec9711c177 (diff) | |
download | pam-e4917734c63ef6e887b3c4760771a14f75b9eb1f.tar.gz pam-e4917734c63ef6e887b3c4760771a14f75b9eb1f.tar.bz2 pam-e4917734c63ef6e887b3c4760771a14f75b9eb1f.zip |
pam_shells: Added xtest test case
Test case for checking pam_authenticate in pam_shells.
Diffstat (limited to 'xtests/tst-pam_shells.sh')
-rwxr-xr-x | xtests/tst-pam_shells.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/xtests/tst-pam_shells.sh b/xtests/tst-pam_shells.sh new file mode 100755 index 00000000..5093f689 --- /dev/null +++ b/xtests/tst-pam_shells.sh @@ -0,0 +1,11 @@ +#!/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 |