Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
umask in /etc/profile or /etc/bashrc doesn’t work in docker, which is strange. Changing UMASK 022 in /etc/login.defs doesn’t work either ...
Had issues,
tried to set /etc/profile, /etc/bashrc, in an init script, none of them worked worked well,
For JupyterHub, you can configure in the *.py file
jupyterhub
setfacl, getfacl, umask all are useful ...
setfacl, etc. works partially, there is currently a bug in jupyter notebook and I have file a issue on GitHub for them for fix it.
inotify can be used as a temporary solution
#!/bin/bash dir=/jupyter inotifywait -m -r -e create --format ‘%w%f’ “f” ]]; then chmod 775 “$f” fi done