Add new option for RPC-only mode, and a help page

This commit is contained in:
Jamie Cameron
2026-05-16 12:40:12 -07:00
parent 4cceba5f8f
commit 1d4556b905
3 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -370,10 +370,11 @@ elsif ($miniserv{'twofactor_provider'}) {
# Can accept RPC calls?
if ($access{'acl'} && !$safe) {
print &ui_table_row($text{'acl_rpc'},
print &ui_table_row(&hlink($text{'acl_rpc'}, 'rpc'),
&ui_radio("rpc", int($uaccess{'rpc'}),
[ [ 1, $text{'acl_rpc1'} ],
$uaccess{'rpc'} == 2 ? ( [ 2, $text{'acl_rpc2'} ] ) : ( ),
[ 3, $text{'acl_rpc3'} ],
[ 0, $text{'acl_rpc0'} ] ]));
}
+14
View File
@@ -0,0 +1,14 @@
<header>Can accept RPC calls?</header>
This option determines if the user can make use of Webmin's poweful RPC calls
feature, which is designed to allow this system to be controlled by a script
or other Webmin server via HTTP. Because the RPC feature does <b>not</b>
respect any module grants or fine-grained access controls, this option should
only be enabled for fully trusted <tt>root</tt>-equivalent users. <p>
In addition, if the <b>RPC calls only</b> option is selected, the user will not
be able to use the Webmin UI. This is useful for creating a separate login with
a longer password for RPC purposes only, as two-factor authentication cannot be
used when making RPC calls. <p>
<footer>
+1
View File
@@ -216,6 +216,7 @@ acl_gedit_gid=Groups with GIDs in range
acl_rpc=Can accept RPC calls?
acl_rpc2=Only for <tt>root</tt> or <tt>admin</tt>
acl_rpc1=Yes
acl_rpc3=RPC calls only
acl_rpc0=No
acl_readonly2=User is in demo mode?
acl_readonlyyes=Yes (Some modules may not be available)