How to get rid "Shell Access" and "Open in Terminal" menu options?

I’d like to get rid of the “Shell Access” menu option in the “Clusters” menu, as well as the “Open in Terminal” button in the File Manager. Some people like SSH access to the cluster and they see this and use this thinking they are on the cluster. Then they try to run their programs interactively. For a number of reasons ( for example containing memory and CPU access, as well as job accounting) we’d like to make sure people are logged into a node instead. I have created an Interactive App that is working (although it isn’t persistent right now) and so I’d like to get rid of opening a shell on the OOD node.

What is the best way to do this?

Thanks

Shell Access:

You can change the permissions on the shell app which is located here:

/var/www/ood/apps/sys/shell

It is probably drwxr-xr-x. 10 root:root so just remove read and execute permissions for Others.

Open in Terminal:

There is a configuration option that you can disable in your ondemand.d configuration file, usually in /etc/ood/config/ondemand.d/ondemand.yml:

files_enable_shell_button: false

Thanks Sean! The “Open In Terminal” solution worked. Actually the “Shell Access” permission change option also kind of worked. It disappears from the menu, but it also makes the Interactive App that I set up give a 500 response. So, maybe I need to somehow move what is in “/var/www/ood/apps/sys/shell” into my bc_shell directory? Unfortunately, it looks quite a bit different than the other Apps.

Ah, does your app depend on the default OOD shell app? The OOD shell app is an example of a Passenger App (an app that runs on the OOD server) and is indeed very different than your regular batch-connect apps (apps that run via the scheduler on a compute node).

There are several “Slurm Shell” apps out there, but all of them have their strengths and weaknesses. In my opinion, the easiest way to achieve this is with a VS Code (code-server) batch-connect app that not only offers a functional terminal, but also a full-fledged IDE that a lot of users are comfortable with.