2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00

Use a testsudoers group file with known contents instead of the system one.

This commit is contained in:
Todd C. Miller 2018-10-27 10:57:37 -06:00
parent 391ed95f50
commit 0398996b39
3 changed files with 17 additions and 1 deletions

View File

@ -613,6 +613,7 @@ plugins/sudoers/regress/sudoers/test9.json.ok
plugins/sudoers/regress/sudoers/test9.ldif.ok
plugins/sudoers/regress/sudoers/test9.out.ok
plugins/sudoers/regress/sudoers/test9.toke.ok
plugins/sudoers/regress/testsudoers/group
plugins/sudoers/regress/testsudoers/test1.out.ok
plugins/sudoers/regress/testsudoers/test1.sh
plugins/sudoers/regress/testsudoers/test2.inc

View File

@ -0,0 +1,15 @@
wheel:*:0:root
daemon:*:1:daemon
kmem:*:2:root
sys:*:3:root
tty:*:4:root
operator:*:5:root
bin:*:7:
wsrc:*:9:
users:*:10:
auth:*:11:
games:*:13:
staff:*:20:root
guest:*:31:root
nogroup:*:32766:
nobody:*:32767:

View File

@ -6,7 +6,7 @@
#
exec 2>&1
./testsudoers -g bin root id <<EOF
./testsudoers -g bin -P ${TESTDIR}/group root id <<EOF
root ALL = ALL
EOF