disable webui terminal


Darek

Recommended Posts

Please provide steps to disable webui terminal.  I prefer ssh key exchange shell access.

Unraid Version 6.8.2

 

-- Digest :  

  We can remove the button on the front end using this command: 

     rm /usr/local/emhttp/plugins/dynamix/TerminalButton.page

 

  Above change does not disable the root access to command line interface, it can be accessed using direct URL with standard authentication:

     https://unraid:8443/webterminal/

 

  There are other avenues to execute nefarious code using unraid UI, and removing this functionality will not address these security issues. 

  Any breach of the UI effectively provides root access to unraid system.

 

 

image.png.babe70dc69142726934300bc81301939.png

 

Edited by Darek
Link to comment

Thank you for your comment. 

Webui terminal provides command line interface (CLI) without ssh key requirement.

I can disable ssh, but I don't see a way to disable Webui terminal.

Once configured I don't need this feature and see it as undesired vulnerability.

I would like to limit this kind of access if possible.

Link to comment
1 hour ago, Darek said:

Thank you for your comment. 

Webui terminal provides command line interface (CLI) without ssh key requirement.

I can disable ssh, but I don't see a way to disable Webui terminal.

Once configured I don't need this feature and see it as undesired vulnerability.

I would like to limit this kind of access if possible.

You have to have logged into webGUI in order to use it.  If someone has hacked that, they could just go and "re-enable" the terminal.

  • Haha 1
Link to comment

Like @limetech says, once logged into the webUI anyone can do pretty much anything, but if you really want to remove that button,

rm /usr/local/emhttp/plugins/dynamix/TerminalButton.page

Will accomplish this if set via a user script to run at Array Start (1st Boot Only)

 

But, you may be better off renaming it as there may come a time when you need to get in via the webGUI to the terminal.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.