Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jupyterhub_files/jupyterhub_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@
c.LocalAuthenticator.add_user_cmd = ['adduser', '-q', '--gecos', '""', '--disabled-password', '--force-badname']
c.LocalAuthenticator.create_system_users = True

# Add users to the admin list, the whitelist, and also record their user ids
# Add users to the admin list, the allowed_users list, and also record their user ids
c.Authenticator.admin_users = admin = set()
c.Authenticator.whitelist = whitelist = set()
c.Authenticator.allowed_users = allowed_users = set()
if os.path.isfile('/etc/jupyterhub/userlist'):
with open('/etc/jupyterhub/userlist') as f:
for line in f:
if line.isspace():
continue
parts = line.split()
name = parts[0]
whitelist.add(name)
allowed_users.add(name)
if len(parts) > 1 and parts[1] == 'admin':
admin.add(name)

Expand Down