Use classic unix users rather than systemd dynamic users

Dynamic Users are neat and probably very useful for a tmpnb
style situation. However, for regular use they have the following
problems:

1. Can't set ProtectHome=no, so you can never apt install or
   similar from inside admin accounts.
2. Dynamic uid / gid makes it hard to write sudo rules. We want
   admin users to have sudo.
3. Persistent uids / gids are very useful for ad-hoc ACLs between
   users. gid sharing isn't the most flexible sharing mechanism,
   but it is well known & quite useful.
4. /etc/skel is pretty useful!
This commit is contained in:
yuvipanda
2018-06-26 23:30:06 -07:00
parent 335ba3c8a6
commit f90a0fa540
5 changed files with 260 additions and 17 deletions

View File

@@ -7,6 +7,7 @@ Wants=network-online.target
[Service]
User=root
Restart=always
Environment=TLJH_INSTALL_PREFIX={install_prefix}
StateDirectory=jupyterhub
WorkingDirectory=/var/lib/jupyterhub
ExecStart={python_interpreter_path} -m jupyterhub.app -f {jupyterhub_config_path}