File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
plugins/sudoers/regress/testsudoers Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ Testing with user and group set to invoking user:
2+
3+ Parses OK
4+
5+ Entries for user admin:
6+
7+ ALL = (root) /bin/ls
8+ host allowed
9+ runas unmatched
10+
11+ Password required
12+
13+ Command unmatched
14+ Testing with no user and group set to invoking user:
15+
116Parses OK
217
318Entries for user admin:
Original file line number Diff line number Diff line change 99
1010exec 2>&1
1111
12+ echo " Testing with user and group set to invoking user:"
13+ echo " "
1214$TESTSUDOERS -u admin -g admin -p ${TESTDIR} /passwd -P ${TESTDIR} /group \
1315 admin /bin/ls << 'EOF '
1416admin ALL = (root) /bin/ls
1517EOF
1618
19+ echo " Testing with no user and group set to invoking user:"
20+ echo " "
21+ $TESTSUDOERS -g admin -p ${TESTDIR} /passwd -P ${TESTDIR} /group \
22+ admin /bin/ls << 'EOF '
23+ admin ALL = (root) /bin/ls
24+ EOF
25+
1726exit 0
You can’t perform that action at this time.
0 commit comments