I'm making an external app that communicates with WHM VIA WHM API 1 calls.
I've been testing with a reseller account that has basic reseller privileges. The server was running WHM 11.48 and running the batch API call worked fine.
But after upgrading the server to WHM 11.52, the batch command returns "permission denied" unless I'm authenticated as root.
Have the permissions for the batch command changed? I would imagine batch would be available to any authenticated account since each command run with batch will be checked against the authenticated user's privileges.
I've been testing with a reseller account that has basic reseller privileges. The server was running WHM 11.48 and running the batch API call worked fine.
Code:
{
"data" : {
"result" : [
{
"data" : {
"fifteen" : "0.73",
"one" : "0.52",
"five" : "0.74"
},
"metadata" : {
"result" : 1,
"reason" : "OK",
"command" : "systemloadavg",
"version" : 1
}
},
{
"data" : {
"version" : "11.48.4.7"
},
"metadata" : {
"result" : 1,
"reason" : "OK",
"command" : "version",
"version" : 1
}
},
]
},
"metadata" : {
"result" : 1,
"reason" : "OK",
"command" : "batch",
"version" : 1
}
}
Code:
{
"metadata" : {
"result" : 0,
"reason" : "Permission denied: You do not have the required privileges to run “batch”.",
"command" : "batch",
"version" : 1
}
}