Manage features API questions
Hello,
cPanel 72.0 (build 5)
Ok, help me understand this:
- is the "SSH Access & Terminal" feature called "ssh" or "terminal"?
- Is this feature enabled by default in 72? If so, why?
- I see that there is a /var/cpanel/disable_whm_terminal_ui file that can be created, is there a cpanel side equivalent?
- what is the correct syntax for this command?
Error below
Called 'terminal' here
Called 'ssh' here
I can turn it off this way but does that turn off just the terminal or also ssh access via a non-webshell?
whmapi1 manage_features action=disable features=terminalError below
[root@server ~]# whmapi1 manage_features action=disable features=terminal
die [xml-api] 'enable' must be implemented by subclasses of 'Cpanel::Config::ConfigObj::Interface::Config::v1'
---
metadata:
command: manage_features
reason: "API failure: exit level [die] [pid=28981] ('enable' must be implemented by subclasses of 'Cpanel::Config::ConfigObj::Interface::Config::v1')\n"
result: 0
version: 1
Called 'terminal' here
[root@server ~]# whmapi1 manage_features action=list
---
data:
feature:
...SNIP...
-
enabled: 0
feature_key: terminal
Called 'ssh' here
[root@server ~]# whmapi1 get_feature_names
---
data:
feature:
...SNIP...
-
id: ssh
name: SSH Access & Terminal
...SNIP...
metadata:
command: get_feature_names
reason: OK
result: 1
version: 1
I can turn it off this way but does that turn off just the terminal or also ssh access via a non-webshell?
[root@server ~]# whmapi1 update_featurelist featurelist=default ssh=0
---
data:
featurelist: default
invalid_features: []
updated_features:
ssh: 0
metadata:
command: update_featurelist
reason: OK
result: 1
version: 1
Please sign in to leave a comment.
Comments
0 comments