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

: ${TESTSUDOERS=testsudoers}

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