mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-23 09:43:36 +08:00
e4917734c6
Test case for checking pam_authenticate in pam_shells.
12 lines
363 B
Bash
Executable File
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
|