summaryrefslogtreecommitdiffstats
path: root/plugins/sudoers/regress/testsudoers/test2.sh
blob: d76cfbbe3d9b2a092560599903b6999a1c3ad471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
#
# Test #include facility
#

MYUID=`\ls -ln $TESTDIR/test2.inc | awk '{print $3}'`
MYGID=`\ls -ln $TESTDIR/test2.inc | awk '{print $4}'`
exec 2>&1
./testsudoers -U $MYUID -G $MYGID root id <<EOF
#include $TESTDIR/test2.inc
EOF

exit 0