Files
the-littlest-jupyterhub/docs/admin.rst

54 lines
1.5 KiB
ReStructuredText
Raw Normal View History

Administrative Access
---------------------
2018-06-27 17:19:54 -07:00
In The Littlest JupyterHub, we try to allow users to do as many administrative
tasks as possible within JupyterHub itself. Admin users can:
2018-06-28 00:44:24 -07:00
1. Have full root access with passwordless ``sudo``
2. Install systemwide packages with ``apt``
3. Install ``conda`` / ``pip`` packages for all JupyterHub
4. Change amount of RAM / CPU available to each user and more!
2018-06-27 17:19:54 -07:00
By default, there are no admin users. You should add some after installation.
Adding admin users
==================
2018-06-27 17:19:54 -07:00
Admin users are specified in the `YAML <https://en.wikipedia.org/wiki/YAML>`_
config file at ``/opt/tljh/config.yaml``.
2018-06-27 17:19:54 -07:00
1. Open the ``config.yaml`` file for editing.
2018-06-27 17:19:54 -07:00
.. code-block:: bash
sudo nano /opt/tljh/config.yaml
2018-06-27 17:19:54 -07:00
2. Add usernames that should have admin access.
.. code-block:: yaml
users:
admin:
- user1
- user2
2018-06-27 17:19:54 -07:00
Be careful around the syntax - indentation matters, and you should be using
spaces and not tabs.
2018-06-28 00:44:24 -07:00
When you are done, save the file and exit. In ``nano``, you can do this with
``Ctrl+X`` key.
2018-06-27 17:19:54 -07:00
3. When you are sure the format is ok, restart JupyterHub to let the config take
effect.
.. code-block:: bash
sudo systemctl restart jupyterhub
2018-06-27 17:19:54 -07:00
This should give you admin access from JupyterHub! You can verify this by:
1. Opening a Terminal in your JupyterHub and checking if ``sudo`` works
2. Opening your JupyterHub ``Control Panel`` and checking for the **Admin** tab
2018-06-27 17:19:54 -07:00
From now on, you can use the JupyterHub to do most configuration changes.