jupyterhub / systemdspawner

Spawn JupyterHub single-user notebook servers with systemd
BSD 3-Clause "New" or "Revised" License
92 stars 45 forks source link

Add possibility to use systemdspawner as non-root #99

Open Frank-Steiner opened 2 years ago

Frank-Steiner commented 2 years ago

Hi, is there any chance to add sth. like the nonrootv2 feature to systemdspawner?

Being able to have juypterhub run as non-root is the only reason for the sudo spawner, which misses all the config options that systemdspawner has. The mechanism in Joergs nonrootv2 tree adds a very systemd'ish way to use per-user service file instances.

Have you considered adding this? Would be great to have systemdspawner + non-root... cu, Frank

welcome[bot] commented 2 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

behrmann commented 2 years ago

Interesting you should mention that. I've recently deployed JupyterHub again and in the course redid some of the stuff around my earlier branch for running JupyterHub without root. I wanted to clean up the history and open a PR for that next week, closing the old one. Alternatively I'm considering a friendly fork under a different name, since I've added named servers and intend to add a few more features, but I'm also using newer systemd features like the credentials mechanism.

Frank-Steiner commented 2 years ago

Would be great to either have it added to the default systemdspawner or have some other spawner that could be installed as easy as the others ones like "pip install jupyterhub-systemdnonrootspawner". Looking forward to testing whatever you come up with :)

behrmann commented 1 year ago

@Frank-Steiner it's not much, but I opened #100 to start a discussion.