summaryrefslogtreecommitdiffstats
path: root/plugins/sudoers/regress/testsudoers/test1.sh
blob: fb99a913f8611413fc4e17566f11e2ebcef1cf5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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.
#

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

exit 0