How to provide jovyan user passwordless sudo priviledge

Hello Community,

I’m exploring solutions to enable password less sudo for jovyan user of our JupyterHub deployment let engineers work independently on experiments. Our setup is based on Kubernetes v1.28.2, and each user accesses their workspace through Jupyter Lab. The goal is to empower users to be able to install linux packages as they please.

If anyone has implemented a similar solution or knows of alternative methods to achieve this level of user autonomy in environment management, I’d greatly appreciate your insights. Any guidance, including relevant configurations or tools, would be immensely helpful.

Thank you for your support!

The docker-stacks images support sudo:
https://jupyter-docker-stacks.readthedocs.io/en/latest/using/common.html#permission-specific-configurations
If you’re using your own images it should be easy to install and configure sudo.

You’ll need to set

singleuser:
  allowPrivilegeEscalation: true

in your Z2JH config.