2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-22 01:49:11 +00:00
2018-09-20 15:10:15 -06:00

15 lines
315 B
Bash
Executable File

#!/bin/sh
#
# Test alias expasion when converting to JSON.
# See https://bugzilla.sudo.ws/show_bug.cgi?id=853
#
exec 2>&1
./cvtsudoers -c "" -e -f json <<EOF
Cmnd_Alias CMDA=/path/to/cmda
Cmnd_Alias CMDB=/path/to/cmdb
Cmnd_Alias CMDC=/path/to/cmdc
User_Alias USERS=user1,user2,user3
USERS ALL=CMDA,!CMDB,CMDC
EOF