subscribe to our Youtube
14136 questions
16793 answers
27590 comments
53990 members
I have multiple devices with "TRB1410_R_00.01.06.1" version and can see "Enable JSON RPC" under SYSTEM > ADMINISTRATION > ACCESS CONTROL.
But this option is gone in 07 version.
I wen't thru the change log and can't see anything related to this.
It seems that there are some other changes, I am unable to write to file as I was before.
I get error of Access denied. Is there anywhere in WebUI I need to give additional permissions?
send [ '2bc6485738f411a7861e7d90ecd25a0f', 'file', 'write', { path: '/home/root/test_file.sh', data: `test data` } ]
send [
'2bc6485738f411a7861e7d90ecd25a0f',
'file',
'write',
{
path: '/home/root/test_file.sh',
data: `test data`
}
]
Hi,
There are additional changes implemented at this moment:
You will need to edit rpcd config:
config login option username 'admin' option password '$p$root' option group 'root' list read '!superuser' list read '*' list write '!superuser' list write '*'
and remove ! symbols from superuser. Once you change the config and save changes, apply the command:
/etc/init.d/rpcd reload
It seems to get a bit further, but still doesn't write the file.
Got this response:
data: { jsonrpc: '2.0', id: 1, result: [ 4 ] }