jupyterhub / systemdspawner

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

Option to set Umask #59

Open miguelmarco opened 5 years ago

miguelmarco commented 5 years ago

The files that are created by the jupyterlab instance run under this spawner have permissions -rw-r--r--

For some use cases, it would make sense that the files of one user could not be readable by other users. The usual way to set a default umask (in bashrc or profile) does not work since thet apply at login time, whereas the spawner does not log in.

Could you add an option to set the umask for the jupyter process?