summaryrefslogtreecommitdiffstats
path: root/plugins/sudoers/regress/testsudoers/test1.sh
blob: 495f2372b9b2a7194fe5510da1239712877d9c80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# Test for NULL dereference with "sudo -g group" when the sudoers rule
# has no runas user or group listed.
# This is RedHat bug Bug 667103.
#

: ${TESTSUDOERS=testsudoers}

exec 2>&1
$TESTSUDOERS -g bin -P ${TESTDIR}/group root id <<EOF
root ALL = ALL
EOF

exit 0