Restrict command execution in Terminal #15968
Replies: 2 comments
-
Hi @msujew, could you kindly provide a lead or hint to help me work around this issue? |
Beta Was this translation helpful? Give feedback.
-
Hey @YathindraNikshipth @sowjanyagunupuru, sorry for the late reply and thanks for the ping. As far as I know, there's no real way to limit or restrict the terminal access of users. Aside from the fact that Theia only acts as a keystroke broker between the browser and the underlying terminal (which makes it technically much more difficult to implement any kind of restrictions) - as long as there's terminal access there are very likely workarounds for any restrictions you put in there (i.e. by renaming executables, using The best way to prevent anything the user does in a terminal from breaking something in the environment, is to completely isolate the Theia environment from the underlying operating system via something like Docker, Kubernetes, a VM or something similar. That's how systems like theia-cloud (Kubernetes), Gitpod or GitHub Codespaces (both use VMs) operate. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I would like to know is there a way to restrict specific user entered command from execution in Theia Terminal.
For suppose i want restrict rm command from executing in my workspace
Beta Was this translation helpful? Give feedback.
All reactions