Closed es-fabricemarie closed 7 months ago
Using the following sudoers file in /etc/sudoers.d/test3:
/etc/sudoers.d/test3
user0 ALL = CHROOT=/var/www CWD=/htdocs /bin/ksh
Using the command:
cvtsudoers --defaults=all --output-format=JSON --input-format=SUDOERS --output=- /etc/sudoers.d/test3
We get the following invalid JSON output:
{ "User_Specs": [ { "User_List": [ { "username": "user0" } ], "Host_List": [ { "hostname": "ALL" } ], "Cmnd_Specs": [ { "Options": [ "runchroot": "/var/www", "runcwd": "/htdocs" ], "Commands": [ { "command": "/bin/ksh" } ] } ] } ] }
The invalid part is here:
"Options": [ "runchroot": "/var/www", "runcwd": "/htdocs" ],
Thanks for the report, this is fixed by 26ce75110f5b5f7120b561aa136e65639261d407
Using the following sudoers file in
/etc/sudoers.d/test3
:Using the command:
We get the following invalid JSON output:
The invalid part is here: