# How to disable Shell access to the Jupyter Notebook docker images?

**URL:** <https://discourse.jupyter.org/t/how-to-disable-shell-access-to-the-jupyter-notebook-docker-images/3434>\
**Category:** JupyterHub\
**Tags:** how-to\
**Created:** [February 25, 2020, 3:27pm UTC](https://discourse.jupyter.org/t/how-to-disable-shell-access-to-the-jupyter-notebook-docker-images/3434 "2020-02-25T15:27:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![1kastner](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/1kastner/32/1537_2.png) [@1kastner](https://discourse.jupyter.org/u/1kastner)\
**Post date:** [February 25, 2020, 3:27pm UTC](https://discourse.jupyter.org/t/how-to-disable-shell-access-to-the-jupyter-notebook-docker-images/3434/1 "2020-02-25T15:27:20Z")

</div>

I have a JupyterHub with a  
[dockerspawner](https://github.com/jupyterhub/dockerspawner).  
I only partly trust the users so that I want to restrict their access to the system as long as it is connected with a reasonable amount of effort.  
Is there a way how I can forbid the default user ‘jovyan’ to install new packages/libraries/…, use the network, open a shell and/or issue commands, including all the standard tools of python (os.system, subprocess, etc.)? Is there any project you are aware of?
