Hi,
my /etc/config/rpcd looks like this:
config rpcd
option socket /var/run/ubus/ubus.sock
option timeout 30
config login
option username 'root'
option password '$p$root'
list read '*'
list write '*'
However, whenever I place a commit call (via Bruno where the ubus_rpc_session placeholder is setup with the correct variable token value) after I disabled wifi via ubus (which doesn't return an error) like this:
{
"jsonrpc": "2.0",
"id": 11,
"method": "call",
"params": [
"{{ubus_rpc_session}}",
"uci",
"commit",
{
"config": "wireless"
}
]
}
The result is:
{
"jsonrpc": "2.0",
"id": 11,
"error": {
"code": -32002,
"message": "Access denied"
}
}
However, when I initially authenticate in order to retrieve the ubus token I receive (extract):
],
"system": [
"read",
"write"
],
"uhttpd": [
"read",
"write"
],
"wireless": [
"read",
"write"
]
}
So I should be allowed to commit, isn't it?
I am using OpenWRT One with the latest packages.
Thanks!