blob: 80b08a574f6ad51a61d79d4e38ef39d4b0345f0f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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
|